diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/get_terminal_width_height.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/get_terminal_width_height.c b/libbb/get_terminal_width_height.c index ef90463fb..7a1af6dc1 100644 --- a/libbb/get_terminal_width_height.c +++ b/libbb/get_terminal_width_height.c | |||
@@ -36,7 +36,7 @@ void get_terminal_width_height(int fd, int *width, int *height) | |||
36 | { | 36 | { |
37 | struct winsize win = { 0, 0, 0, 0 }; | 37 | struct winsize win = { 0, 0, 0, 0 }; |
38 | #ifdef CONFIG_FEATURE_AUTOWIDTH | 38 | #ifdef CONFIG_FEATURE_AUTOWIDTH |
39 | if (ioctl(0, TIOCGWINSZ, &win) != 0) { | 39 | if (ioctl(fd, TIOCGWINSZ, &win) != 0) { |
40 | win.ws_row = 24; | 40 | win.ws_row = 24; |
41 | win.ws_col = 80; | 41 | win.ws_col = 80; |
42 | } | 42 | } |