diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-09 08:27:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-09 08:27:24 +0000 |
commit | f893da875a24138fac30f070c7101b5330f0fef0 (patch) | |
tree | ede441ba82f7a1bf9942ba33a64e91bcd8173920 /coreutils/ls.c | |
parent | 501bfe2630054f9988e08a5d77e1b1ff2abc78bb (diff) | |
download | busybox-w32-f893da875a24138fac30f070c7101b5330f0fef0.tar.gz busybox-w32-f893da875a24138fac30f070c7101b5330f0fef0.tar.bz2 busybox-w32-f893da875a24138fac30f070c7101b5330f0fef0.zip |
ls,ps,watch: measure terminal width on fd 0, not 1
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r-- | coreutils/ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index f47ec204c..920fad85e 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -811,7 +811,7 @@ int ls_main(int argc, char **argv) | |||
811 | 811 | ||
812 | #if ENABLE_FEATURE_AUTOWIDTH | 812 | #if ENABLE_FEATURE_AUTOWIDTH |
813 | /* Obtain the terminal width */ | 813 | /* Obtain the terminal width */ |
814 | get_terminal_width_height(STDOUT_FILENO, &terminal_width, NULL); | 814 | get_terminal_width_height(STDIN_FILENO, &terminal_width, NULL); |
815 | /* Go one less... */ | 815 | /* Go one less... */ |
816 | terminal_width--; | 816 | terminal_width--; |
817 | #endif | 817 | #endif |