From 431295b3af55da5d4d6d37fed024a6c6cfe89120 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 8 Jan 2006 12:25:06 +0000 Subject: Sync with usr.sbin/pkg_install 1.58: Use MaxPathSize instead of PATH_MAX. --- pkgtools/pkg_install/files/lib/str.c | 6 +++--- 1 file 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 "."; -- cgit v1.2.3