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:
Peter Wemm 2003-10-26 05:05:48 +00:00
parent d75a18e3d2
commit 10ebb45ae0

View File

@ -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);