From 12e18ae5796cdf0b1ec05b31a41380c6dbbe241f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 30 Oct 2014 10:59:42 +0100 Subject: [PATCH] bin/xbps-install/util.c: use STDOUT_FILENO. --- bin/xbps-install/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-install/util.c b/bin/xbps-install/util.c index 3be2baf4..95948772 100644 --- a/bin/xbps-install/util.c +++ b/bin/xbps-install/util.c @@ -40,7 +40,7 @@ get_maxcols(void) { struct winsize ws; - if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) == 0) + if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) == 0) return ws.ws_col ? ws.ws_col : 80; return 80;