diff options
Diffstat (limited to 'devel/generate/patches/patch-ac')
-rw-r--r-- | devel/generate/patches/patch-ac | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/devel/generate/patches/patch-ac b/devel/generate/patches/patch-ac new file mode 100644 index 00000000000..101740303b0 --- /dev/null +++ b/devel/generate/patches/patch-ac @@ -0,0 +1,47 @@ +$NetBSD: patch-ac,v 1.1 2004/12/18 19:05:54 minskim Exp $ + +--- getarg.c.orig 2004-11-09 14:16:42.000000000 -0600 ++++ getarg.c +@@ -330,7 +330,7 @@ initargs(const char *env_str) + int j = 0; + + /* skip leading space */ +- while (isspace(*env_str)) ++ while (isspace((unsigned char)*env_str)) + env_str++; + + /* trivial case */ +@@ -364,13 +364,13 @@ initargs(const char *env_str) + } + + /* space is end of string */ +- if (isspace(*env_str)) ++ if (isspace((unsigned char)*env_str)) + { + *p++ = 0; + env_args[++j] = p; + + /* skip white space */ +- while (*env_str && isspace(*env_str)) ++ while (*env_str && isspace((unsigned char)*env_str)) + env_str++; + } + else if (*env_str == '\\') +@@ -518,7 +518,7 @@ getarg(const char *opts) + /* Note the following code does not allow leading + spaces or all spaces in an argument */ + +- while (isspace(pargv[xoptind][++sp])) ++ while (isspace((unsigned char)pargv[xoptind][++sp])) + ; + + if(pargv[xoptind][sp]) +@@ -536,7 +536,7 @@ getarg(const char *opts) + } + else if (*cp == ';') + { +- while (isspace(pargv[xoptind][++sp])) ++ while (isspace((unsigned char)pargv[xoptind][++sp])) + ; + + if (pargv[xoptind][sp]) |