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 | d182d0d6186f777892bdf478ca6ffcf1f311aa20 (patch) | |
tree | c2488f0ef30525c2aaa65c889c87581c5915537d /pkgtools | |
parent | c4be92a335395f082af320dfdb7b8186643b0782 (diff) | |
download | pkgsrc-d182d0d6186f777892bdf478ca6ffcf1f311aa20.tar.gz |
Sync with usr.sbin/pkg_install 1.58:
Use MaxPathSize instead of PATH_MAX.
Diffstat (limited to 'pkgtools')
-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 "."; |