(parse): Add unsigned char cast to isspace() call.
Portability bug fix for WIN32.
va_end(ap);
for (i = n; buf[i]; ++i) {
- if (!isprint(buf[i]))
+ if (!isprint((unsigned char)buf[i]))
buf[i] = '?'; /* FIXME replace by escape */
}
buf[i++] = '\n';
if (condp != NULL)
*condp = NULL;
for (argnum = 0; *buf && argnum < 127;) {
- while (isspace(*buf))
+ while (isspace((unsigned char)*buf))
buf++;
if (!*buf)
break;
}
quoted = 0;
for (bp2 = bp1; *buf;) {
- if (!quoted && isspace(*buf)) {
+ if (!quoted && isspace((unsigned char)*buf)) {
buf++;
break;
}