summaryrefslogtreecommitdiff
path: root/usr.bin/w/w.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-24 19:57:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-24 19:57:12 +0000
commitd8551e6ed6cddd7b67801279463223e73200c3ce (patch)
treec87c5477cb82f225ab4ebf3bded1249ede0017c9 /usr.bin/w/w.c
parent3747433712413971576929d6fcaef3622f9b9354 (diff)
No, we are not making our w command incompatible
Diffstat (limited to 'usr.bin/w/w.c')
-rw-r--r--usr.bin/w/w.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index b2ddee16445..eb97475cc59 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: w.c,v 1.21 1997/12/24 16:13:25 mickey Exp $ */
+/* $OpenBSD: w.c,v 1.22 1997/12/24 19:57:11 deraadt Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -231,7 +231,7 @@ main(argc, argv)
exit (0);
}
-#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT\n"
+#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT\n"
#define WUSED (sizeof (HEADER) - sizeof ("WHAT\n"))
(void)printf(HEADER);
@@ -325,7 +325,7 @@ main(argc, argv)
ep->utmp.ut_host + UT_HOSTSIZE - x, x);
p = buf;
}
- (void)printf("%-*.*s %3.3s %-*.*s ",
+ (void)printf("%-*.*s %-2.2s %-*.*s ",
UT_NAMESIZE, UT_NAMESIZE, ep->utmp.ut_name,
strncmp(ep->utmp.ut_line, "tty", 3) ?
ep->utmp.ut_line : ep->utmp.ut_line + 3,