summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-04 04:40:56 +0000
committerache <ache@FreeBSD.org>1999-11-04 04:40:56 +0000
commit2e8706cc0375c766c09d86c0e4b3a69d92b35679 (patch)
tree0bf2bb390cacb9cce1a697808760a29abaec6ddc /lib
parentdc0dd57e24f76d65287942f9b6af74c09129c2d4 (diff)
downloadFreeBSD-src-2e8706cc0375c766c09d86c0e4b3a69d92b35679.zip
FreeBSD-src-2e8706cc0375c766c09d86c0e4b3a69d92b35679.tar.gz
Add unsigned char cast to isupper
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdtime/strptime.c2
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);
OpenPOWER on IntegriCloud