diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-15 23:47:23 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-15 23:47:23 +0000 |
commit | a7601af097c8d7e6e6b6b8aa7b1c55d871b527aa (patch) | |
tree | b2c05715e7f3c4e476ed51a7f398e1e5602e633b /usr.bin/tip/remote.c | |
parent | 10596d6b040c846001dda4e65a777b235f168ce6 (diff) |
Possible buf oflow + index -> strchr.
Diffstat (limited to 'usr.bin/tip/remote.c')
-rw-r--r-- | usr.bin/tip/remote.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/remote.c b/usr.bin/tip/remote.c index 883807e36fe..4e5e8447528 100644 --- a/usr.bin/tip/remote.c +++ b/usr.bin/tip/remote.c @@ -1,4 +1,4 @@ -/* $OpenBSD: remote.c,v 1.2 1996/06/26 05:40:46 deraadt Exp $ */ +/* $OpenBSD: remote.c,v 1.3 1996/10/15 23:47:21 millert Exp $ */ /* $NetBSD: remote.c,v 1.3 1994/12/08 09:31:03 jtc Exp $ */ /* @@ -45,7 +45,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)remote.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: remote.c,v 1.2 1996/06/26 05:40:46 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: remote.c,v 1.3 1996/10/15 23:47:21 millert Exp $"; #endif /* not lint */ #include <stdio.h> @@ -220,7 +220,7 @@ getremote(host) */ if (next == NOSTR) return (NOSTR); - if ((cp = index(next, ',')) == NULL) { + if ((cp = strchr(next, ',')) == NULL) { DV = next; next = NOSTR; } else { |