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 rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/gen/getcap.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.33.4.2 retrieving revision 1.34 diff -u -p -r1.33.4.2 -r1.34 --- src/lib/libc/gen/getcap.c 2002/04/25 04:01:41 1.33.4.2 +++ src/lib/libc/gen/getcap.c 2001/06/25 15:34:08 1.34 @@ -1,4 +1,4 @@ -/* $NetBSD: getcap.c,v 1.33.4.2 2002/04/25 04:01:41 nathanw Exp $ */ +/* $NetBSD: getcap.c,v 1.34 2001/06/25 15:34:08 mrg Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; #else -__RCSID("$NetBSD: getcap.c,v 1.33.4.2 2002/04/25 04:01:41 nathanw Exp $"); +__RCSID("$NetBSD: getcap.c,v 1.34 2001/06/25 15:34:08 mrg Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -822,8 +822,6 @@ cgetnext(bp, db_array) /* * Line points to a name line. */ - if (len > sizeof(nbuf)) - return -1; done = 0; np = nbuf; for (;;) { @@ -855,8 +853,6 @@ cgetnext(bp, db_array) line[len - 1] = '\0'; } } - if (len > sizeof(buf)) - return -1; rp = buf; for(cp = nbuf; *cp != '\0'; cp++) if (*cp == '|' || *cp == ':')