summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-08-22 02:16:02 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-08-22 02:16:02 +0000
commitc8d332cdd9dae369f84747dc570b442155428824 (patch)
treec8223fe8a584a3a17980a696409aaec4d0ad61db /usr.bin
parentce8fe8119d04358767d7fc080c31019a7c5623ed (diff)
Slightly better.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/w/w.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 1284f06159b..fd0c0c4be18 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: w.c,v 1.7 1996/08/22 02:12:33 downsj Exp $ */
+/* $OpenBSD: w.c,v 1.8 1996/08/22 02:16:01 downsj Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -349,7 +349,7 @@ pr_args(kp)
if (strncmp(*argv, "ftpd:", 5) == 0) {
str = strrchr(*argv, ':');
if (str != (char *)NULL) {
- if (strlen(str) > 2)
+ if ((str[0] == ':') && isspace(str[1]))
str += 2;
fmt_puts(str, &left);
} else