summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/who/who.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c
index d31ee47..624a4c3 100644
--- a/usr.bin/who/who.c
+++ b/usr.bin/who/who.c
@@ -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);
OpenPOWER on IntegriCloud