putchar('"');
for (i = 0; i < db.dsize; i++) {
- if (isprint(db.dptr[i]))
+ if (isprint((unsigned char)db.dptr[i]))
putchar(db.dptr[i]);
else {
putchar('\\');
*p = '\f';
else if (*s == 't')
*p = '\t';
- else if (isdigit(*s) && isdigit(*(s + 1)) && isdigit(*(s + 2))) {
+ else if (isdigit((unsigned char)*s)
+ && isdigit((unsigned char)*(s + 1))
+ && isdigit((unsigned char)*(s + 2)))
+ {
i = (*s++ - '0') << 6;
i |= (*s++ - '0') << 3;
i |= *s - '0';
|FORMAT_MESSAGE_FROM_SYSTEM, NULL,
dwErr, 0, (char *)&sMsg, 1, NULL);
if (0 < dwLen) {
- while (0 < dwLen && isspace(sMsg[--dwLen]))
+ while (0 < dwLen && isSPACE(sMsg[--dwLen]))
;
if ('.' != sMsg[dwLen])
dwLen++;
strcpy(cmd2, cmd);
a = argv;
for (s = cmd2; *s;) {
- while (*s && isspace(*s))
+ while (*s && isSPACE(*s))
s++;
if (*s)
*(a++) = s;
- while (*s && !isspace(*s))
+ while (*s && !isSPACE(*s))
s++;
if (*s)
*s++ = '\0';
|FORMAT_MESSAGE_FROM_SYSTEM, NULL,
dwErr, 0, (char *)&sMsg, 1, NULL);
if (0 < dwLen) {
- while (0 < dwLen && isspace(sMsg[--dwLen]))
+ while (0 < dwLen && isSPACE(sMsg[--dwLen]))
;
if ('.' != sMsg[dwLen])
dwLen++;