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 2003-10-26 05:05:48 +00:00
parent 57e85f6680
commit a4f43a8a53

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