diff options
author | wiz <wiz@pkgsrc.org> | 2006-01-08 12:25:06 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-01-08 12:25:06 +0000 |
commit | 1220a4e11abb69723f773a00f821b12bd7fb60b4 (patch) | |
tree | c2488f0ef30525c2aaa65c889c87581c5915537d /pkgtools/pkg_install | |
parent | d2375364b9c1569245725b83f308b10d72cb9946 (diff) | |
download | pkgsrc-1220a4e11abb69723f773a00f821b12bd7fb60b4.tar.gz |
Sync with usr.sbin/pkg_install 1.58:
Use MaxPathSize instead of PATH_MAX.
Diffstat (limited to 'pkgtools/pkg_install')
-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 "."; |