diff options
author | ache <ache@FreeBSD.org> | 1999-11-04 04:40:56 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-11-04 04:40:56 +0000 |
commit | 2e8706cc0375c766c09d86c0e4b3a69d92b35679 (patch) | |
tree | 0bf2bb390cacb9cce1a697808760a29abaec6ddc /lib/libc/stdtime/strptime.c | |
parent | dc0dd57e24f76d65287942f9b6af74c09129c2d4 (diff) | |
download | FreeBSD-src-2e8706cc0375c766c09d86c0e4b3a69d92b35679.zip FreeBSD-src-2e8706cc0375c766c09d86c0e4b3a69d92b35679.tar.gz |
Add unsigned char cast to isupper
Diffstat (limited to 'lib/libc/stdtime/strptime.c')
-rw-r--r-- | lib/libc/stdtime/strptime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c index a49db88..7f2de92 100644 --- a/lib/libc/stdtime/strptime.c +++ b/lib/libc/stdtime/strptime.c @@ -362,7 +362,7 @@ _strptime(const char *buf, const char *fmt, struct tm *tm) const char *cp; char *zonestr; - for (cp = buf; *cp && isupper(*cp); ++cp) {/*empty*/} + for (cp = buf; *cp && isupper((unsigned char)*cp); ++cp) {/*empty*/} if (cp - buf) { zonestr = alloca(cp - buf + 1); strncpy(zonestr, buf, cp - buf); |