aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 7da7cad1c..1d6a4b274 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -628,7 +628,7 @@ static int busybox_main(char **argv)
628 output_width = 80; 628 output_width = 80;
629 if (ENABLE_FEATURE_AUTOWIDTH) { 629 if (ENABLE_FEATURE_AUTOWIDTH) {
630 /* Obtain the terminal width */ 630 /* Obtain the terminal width */
631 get_terminal_width_height(0, &output_width, NULL); 631 output_width = get_terminal_width(2);
632 } 632 }
633 633
634 dup2(1, 2); 634 dup2(1, 2);
@@ -659,10 +659,10 @@ static int busybox_main(char **argv)
659 ) 659 )
660 IF_FEATURE_SH_STANDALONE( 660 IF_FEATURE_SH_STANDALONE(
661 "\tBusyBox is a multi-call binary that combines many common Unix\n" 661 "\tBusyBox is a multi-call binary that combines many common Unix\n"
662 "\tutilities into a single executable. The shell in this version\n" 662 "\tutilities into a single executable. The shell in this build\n"
663 "\thas been configured to prefer built-in utilities to external\n" 663 "\tis configured to run built-in utilities without $PATH search.\n"
664 "\tbinaries. This avoids having to install a link to busybox for\n" 664 "\tYou don't need to install a link to busybox for each utility.\n"
665 "\teach function to be invoked.\n" 665 "\tTo run external program, use full path (/sbin/ip instead of ip).\n"
666 ) 666 )
667 "\n" 667 "\n"
668#if ENABLE_GLOBBING 668#if ENABLE_GLOBBING