From 1c491c8eb8fcbae24f0667ba3119e26e736284de Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Mon, 24 Apr 1995 21:50:11 +0000 Subject: [PATCH] Use ARG_MAX instead of _POSIX_ARG_MAX: 4K is too small! This should stop the SIGBUS errors in pkg_create for some packages. --- usr.sbin/pkg_install/create/perform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index 9a11c46e60b5..0efb41ac99b8 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: perform.c,v 1.19 1995/04/22 01:20:13 jkh Exp $"; +static const char *rcsid = "$Id: perform.c,v 1.21 1995/04/22 14:55:07 jkh Exp $"; #endif /* @@ -26,7 +26,7 @@ static const char *rcsid = "$Id: perform.c,v 1.19 1995/04/22 01:20:13 jkh Exp $" #include "create.h" #include -#include +#include static void sanity_check(void); static void make_dist(char *, char *, char *, Package *); @@ -179,7 +179,7 @@ static void make_dist(char *home, char *pkg, char *suffix, Package *plist) { char tball[FILENAME_MAX]; - char cmd[_POSIX_ARG_MAX]; + char cmd[ARG_MAX]; int ret; PackingList p;