Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/getcap.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -p -r1.11 -r1.12 --- src/lib/libc/gen/getcap.c 1997/01/23 14:01:54 1.11 +++ src/lib/libc/gen/getcap.c 1997/05/17 19:29:18 1.12 @@ -1,4 +1,4 @@ -/* $NetBSD: getcap.c,v 1.11 1997/01/23 14:01:54 mrg Exp $ */ +/* $NetBSD: getcap.c,v 1.12 1997/05/17 19:29:18 pk Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; #else -static char rcsid[] = "$NetBSD: getcap.c,v 1.11 1997/01/23 14:01:54 mrg Exp $"; +static char rcsid[] = "$NetBSD: getcap.c,v 1.12 1997/05/17 19:29:18 pk Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -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