bin/xbps-install/util.c: use STDOUT_FILENO.

This commit is contained in:
Juan RP 2014-10-30 10:59:42 +01:00
parent 15943d990c
commit 12e18ae579

View File

@ -40,7 +40,7 @@ get_maxcols(void)
{ {
struct winsize ws; 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 ws.ws_col ? ws.ws_col : 80;
return 80; return 80;