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.35.2.1 retrieving revision 1.36 diff -u -p -r1.35.2.1 -r1.36 --- src/lib/libc/gen/getcap.c 2004/06/18 00:57:45 1.35.2.1 +++ src/lib/libc/gen/getcap.c 2002/08/04 11:55:51 1.36 @@ -1,4 +1,4 @@ -/* $NetBSD: getcap.c,v 1.35.2.1 2004/06/18 00:57:45 jmc Exp $ */ +/* $NetBSD: getcap.c,v 1.36 2002/08/04 11:55:51 tron Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -36,21 +36,18 @@ * SUCH DAMAGE. */ -#if HAVE_CONFIG_H -#include "config.h" -#endif - #include #if defined(LIBC_SCCS) && !defined(lint) #if 0 static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; #else -__RCSID("$NetBSD: getcap.c,v 1.35.2.1 2004/06/18 00:57:45 jmc Exp $"); +__RCSID("$NetBSD: getcap.c,v 1.36 2002/08/04 11:55:51 tron Exp $"); #endif #endif /* LIBC_SCCS and not lint */ #include "namespace.h" #include +#include #include #include @@ -255,7 +252,7 @@ getent(cap, len, db_array, fd, name, dep size_t clen; char *record, *cbuf, *newrecord; int tc_not_resolved; - char pbuf[_POSIX_PATH_MAX]; + char pbuf[MAXPATHLEN]; _DIAGASSERT(cap != NULL); _DIAGASSERT(len != NULL);