diff --git a/lib/libc/gen/getcap.c b/lib/libc/gen/getcap.c index ac43edd0896e..004813838d18 100644 --- a/lib/libc/gen/getcap.c +++ b/lib/libc/gen/getcap.c @@ -1,4 +1,4 @@ -/* $NetBSD: getcap.c,v 1.35 2002/04/16 19:07:57 groo Exp $ */ +/* $NetBSD: getcap.c,v 1.36 2002/08/04 11:55:51 tron Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,12 +41,13 @@ #if 0 static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; #else -__RCSID("$NetBSD: getcap.c,v 1.35 2002/04/16 19:07:57 groo 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 @@ -251,7 +252,7 @@ getent(cap, len, db_array, fd, name, depth, nfield) 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);