1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121548

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