pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib Sync with usr.sbin/pkg_...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cfde40cefb4b
branches:  trunk
changeset: 505831:cfde40cefb4b
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jan 08 12:25:06 2006 +0000

description:
Sync with usr.sbin/pkg_install 1.58:
Use MaxPathSize instead of PATH_MAX.

diffstat:

 pkgtools/pkg_install/files/lib/str.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 029333ebb23b -r cfde40cefb4b pkgtools/pkg_install/files/lib/str.c
--- a/pkgtools/pkg_install/files/lib/str.c      Sun Jan 08 12:07:51 2006 +0000
+++ b/pkgtools/pkg_install/files/lib/str.c      Sun Jan 08 12:25:06 2006 +0000
@@ -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 @@
 {
        size_t  cc;
        char   *s;
-       static char buf[PATH_MAX];
+       static char buf[MaxPathSize];
 
        if ((s = strrchr(path, '/')) == NULL) {
                return ".";



Home | Main Index | Thread Index | Old Index