summaryrefslogtreecommitdiffstats
path: root/newlib/libc/time/strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/time/strptime.c')
-rw-r--r--newlib/libc/time/strptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/time/strptime.c b/newlib/libc/time/strptime.c
index 0fc5f4e13..601f93e8a 100644
--- a/newlib/libc/time/strptime.c
+++ b/newlib/libc/time/strptime.c
@@ -165,8 +165,8 @@ _DEFUN (strptime, (buf, format, timeptr),
char *s;
int ret;
- if (isspace (c)) {
- while (isspace (*buf))
+ if (isspace ((unsigned char) c)) {
+ while (isspace ((unsigned char) *buf))
++buf;
} else if (c == '%' && format[1] != '\0') {
c = *++format;