mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-31 15:01:59 +01:00
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.
This commit is contained in:
parent
fa41cb6792
commit
fe2cc41151
@ -5118,7 +5118,7 @@ uint32_t parse_line(char *in, char *out, size_t *outlen, char **args, int *nbarg
|
||||
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 @@ uint32_t parse_line(char *in, char *out, size_t *outlen, char **args, int *nbarg
|
||||
err |= PARSE_ERR_TOOMANY;
|
||||
|
||||
/* skip consecutive spaces */
|
||||
while (isspace(*++value))
|
||||
while (isspace((unsigned char)*++value))
|
||||
;
|
||||
} else {
|
||||
EMIT_CHAR(*value++);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user