Forward port of 2.5 patch.
} else if (is_kana(*s)) {
s++;
} else {
- if (islower(*s))
- *s = toupper(*s);
+ if (islower((int)(unsigned char)*s))
+ *s = toupper((int)(unsigned char)*s);
s++;
}
} else
#endif /* KANJI_WIN95_COMPATIBILITY */
#endif /* UNUSED_CODE */
{
- if (islower(*s))
- *s = toupper(*s);
+ if (islower((int)(unsigned char)*s))
+ *s = toupper((int)(unsigned char)*s);
s++;
}
}
* else
* #endif *//* KANJI_WIN95_COMPATIBILITY */
{
- if (islower(*s))
+ if (islower((int)(unsigned char)*s))
*s = toupper(*s);
s++;
}
d = buf;
for (; l; l--) {
- if (*sc == '\0' || !isprint(*sc)) {
+ if (*sc == '\0' || !isprint((int)(unsigned char)*sc)) {
fprintf(stderr, "ntlmGetString: bad ascii: %04x\n", *sc);
return (NULL);
}