aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firemon/top.c')
-rw-r--r--src/firemon/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firemon/top.c b/src/firemon/top.c
index fc6e6289e..55a35d93d 100644
--- a/src/firemon/top.c
+++ b/src/firemon/top.c
@@ -274,7 +274,7 @@ void top(void) {
274 struct winsize sz; 274 struct winsize sz;
275 int row = 24; 275 int row = 24;
276 int col = 80; 276 int col = 80;
277 if (!ioctl(0, TIOCGWINSZ, &sz)) { 277 if (!ioctl(STDIN_FILENO, TIOCGWINSZ, &sz)) {
278 col = sz.ws_col; 278 col = sz.ws_col;
279 row = sz.ws_row; 279 row = sz.ws_row;
280 } 280 }