cast to unsigned char
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user