BUILD: tools: fix minor build issue on isspace()
Previous commit fa41cb679 ("MINOR: tools: support for word expansion
of environment in parse_line") introduced two new isspace() on a char
and broke the build on systems using an array disguised in a macro
instead of a function (like cygwin). Just use the usual cast.
diff --git a/src/tools.c b/src/tools.c
index c2a9664..75dfef1 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -5118,7 +5118,7 @@
if (value) {
while (*value) {
/* expand as individual parameters on a space character */
- if (word_expand && isspace(*value)) {
+ if (word_expand && isspace((unsigned char)*value)) {
EMIT_CHAR(0);
++arg;
if (arg < argsmax)
@@ -5127,7 +5127,7 @@
err |= PARSE_ERR_TOOMANY;
/* skip consecutive spaces */
- while (isspace(*++value))
+ while (isspace((unsigned char)*++value))
;
} else {
EMIT_CHAR(*value++);