From d9454550be074573609dd7a034456c7b0dfd173e Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sun, 25 Jun 2017 13:42:13 +0200 Subject: firemon: use macro instead of number --- src/firemon/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { struct winsize sz; int row = 24; int col = 80; - if (!ioctl(0, TIOCGWINSZ, &sz)) { + if (!ioctl(STDIN_FILENO, TIOCGWINSZ, &sz)) { col = sz.ws_col; row = sz.ws_row; } -- cgit v1.2.3-54-g00ecf