diff options
Diffstat (limited to 'more.c')
-rw-r--r-- | more.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -122,7 +122,7 @@ extern int more_main(int argc, char **argv) | |||
122 | stty(fileno(cin), &new_settings); | 122 | stty(fileno(cin), &new_settings); |
123 | 123 | ||
124 | #ifdef BB_FEATURE_AUTOWIDTH | 124 | #ifdef BB_FEATURE_AUTOWIDTH |
125 | ioctl(STDOUT_FILENO, TIOCGWINSZ, &win); | 125 | ioctl(fileno(stdout), TIOCGWINSZ, &win); |
126 | if (win.ws_row > 4) | 126 | if (win.ws_row > 4) |
127 | terminal_height = win.ws_row - 2; | 127 | terminal_height = win.ws_row - 2; |
128 | if (win.ws_col > 0) | 128 | if (win.ws_col > 0) |