Fix a warning that showed up on 64 bit systems. It was actually a real
bug that had been swept under the carpet.
This commit is contained in:
parent
57e85f6680
commit
a4f43a8a53
@ -285,7 +285,7 @@ ttywidth(void)
|
||||
*ep != '\0')
|
||||
warnx("invalid COLUMNS environment variable ignored");
|
||||
else
|
||||
return ((int)cols);
|
||||
return (width);
|
||||
}
|
||||
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1)
|
||||
return (ws.ws_col);
|
||||
|
Loading…
Reference in New Issue
Block a user