diff options
author | wiz <wiz> | 2006-01-08 12:25:06 +0000 |
---|---|---|
committer | wiz <wiz> | 2006-01-08 12:25:06 +0000 |
commit | 431295b3af55da5d4d6d37fed024a6c6cfe89120 (patch) | |
tree | c2488f0ef30525c2aaa65c889c87581c5915537d | |
parent | 3d739593fc05d05c1810e0a87bd61e951c427bab (diff) | |
download | pkgsrc-431295b3af55da5d4d6d37fed024a6c6cfe89120.tar.gz |
Sync with usr.sbin/pkg_install 1.58:
Use MaxPathSize instead of PATH_MAX.
-rw-r--r-- | pkgtools/pkg_install/files/lib/str.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/lib/str.c b/pkgtools/pkg_install/files/lib/str.c index eaa57995035..b636c5da0b5 100644 --- a/pkgtools/pkg_install/files/lib/str.c +++ b/pkgtools/pkg_install/files/lib/str.c @@ -1,4 +1,4 @@ -/* $NetBSD: str.c,v 1.15 2005/11/13 19:51:14 wiz Exp $ */ +/* $NetBSD: str.c,v 1.16 2006/01/08 12:25:06 wiz Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -11,7 +11,7 @@ #if 0 static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp"; #else -__RCSID("$NetBSD: str.c,v 1.15 2005/11/13 19:51:14 wiz Exp $"); +__RCSID("$NetBSD: str.c,v 1.16 2006/01/08 12:25:06 wiz Exp $"); #endif #endif @@ -80,7 +80,7 @@ dirname_of(const char *path) { size_t cc; char *s; - static char buf[PATH_MAX]; + static char buf[MaxPathSize]; if ((s = strrchr(path, '/')) == NULL) { return "."; |