bin/xbps-install/util.c: use STDOUT_FILENO.
This commit is contained in:
parent
15943d990c
commit
12e18ae579
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user