diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-10-26 22:49:13 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-10-26 22:49:13 +0000 |
commit | d9e72b3e9a7ac10e574fa213ef7fdc07f10afa0b (patch) | |
tree | 47dbee3c44acd1fd9a53fa375b6667c30102c7ff /usr.bin | |
parent | 3a594b75aaab67930454435b6f6291202583d17d (diff) |
missed one change, pointed out by Alex Nash <nash@mcs.net>
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/write/write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c index 97e2fe7ef2a..92ef59bbc94 100644 --- a/usr.bin/write/write.c +++ b/usr.bin/write/write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: write.c,v 1.7 1996/10/25 06:15:03 downsj Exp $ */ +/* $OpenBSD: write.c,v 1.8 1996/10/26 22:49:12 downsj Exp $ */ /* $NetBSD: write.c,v 1.5 1995/08/31 21:48:32 jtc Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)write.c 8.2 (Berkeley) 4/27/95"; #endif -static char *rcsid = "$OpenBSD: write.c,v 1.7 1996/10/25 06:15:03 downsj Exp $"; +static char *rcsid = "$OpenBSD: write.c,v 1.8 1996/10/26 22:49:12 downsj Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -112,7 +112,7 @@ main(argc, argv) break; case 3: if (!strncmp(argv[2], _PATH_DEV, strlen(_PATH_DEV))) - argv[2] += 5; + argv[2] += strlen(_PATH_DEV); if (utmp_chk(argv[1], argv[2])) errx(1, "%s is not logged in on %s", argv[1], argv[2]); |