diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-12 08:53:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-09-12 08:53:09 +0000 |
commit | ff6a6b102917748c5c6dabcf3533c3dc4eea7083 (patch) | |
tree | 5ee4d8198865020ba5d9bb640fe246f655e92a3a /lib/libc/gen/getcap.c | |
parent | 2f366afe2f2cae33e3bbc4f18d7f330fc0b45d01 (diff) |
wrong NULL
Diffstat (limited to 'lib/libc/gen/getcap.c')
-rw-r--r-- | lib/libc/gen/getcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <sys/types.h> @@ -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 |