cast to unsigned char

This commit is contained in:
Mark Andrews
2014-01-16 11:46:28 +11:00
parent dedefc0bdb
commit 64819a98a9

View File

@@ -161,8 +161,8 @@ isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm) {
alt_format = 0;
/* Eat up white-space. */
if (isspace((int) c)) {
while (isspace((int) *bp))
if (isspace((unsigned char) c)) {
while (isspace((unsigned char) *bp))
bp++;
fmt++;
@@ -427,7 +427,7 @@ literal:
case 'n': /* Any kind of white-space. */
case 't':
LEGAL_ALT(0);
while (isspace((int) *bp))
while (isspace((unsigned char) *bp))
bp++;
break;