diff options
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 f7fa9a110..8b5065ac6 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -982,7 +982,7 @@ extern int ls_main(int argc, char **argv) | |||
982 | 982 | ||
983 | #ifdef CONFIG_FEATURE_AUTOWIDTH | 983 | #ifdef CONFIG_FEATURE_AUTOWIDTH |
984 | /* Obtain the terminal width. */ | 984 | /* Obtain the terminal width. */ |
985 | get_terminal_width_height(0, &terminal_width, NULL); | 985 | get_terminal_width_height(fileno(stdout), &terminal_width, NULL); |
986 | /* Go one less... */ | 986 | /* Go one less... */ |
987 | terminal_width--; | 987 | terminal_width--; |
988 | #endif | 988 | #endif |