From ff6a6b102917748c5c6dabcf3533c3dc4eea7083 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 12 Sep 1997 08:53:09 +0000 Subject: wrong NULL --- lib/libc/gen/getcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/gen/getcap.c') diff --git a/lib/libc/gen/getcap.c b/lib/libc/gen/getcap.c index 47b26410192..9e96e5e6870 100644 --- a/lib/libc/gen/getcap.c +++ b/lib/libc/gen/getcap.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getcap.c,v 1.10 1997/07/28 11:19:59 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: getcap.c,v 1.11 1997/09/12 08:53:08 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -741,7 +741,7 @@ cgetnext(bp, db_array) } } rp = buf; - for(cp = nbuf; *cp != NULL; cp++) + for(cp = nbuf; *cp != '\0'; cp++) if (*cp == '|' || *cp == ':') break; else -- cgit v1.2.3