From 2e8706cc0375c766c09d86c0e4b3a69d92b35679 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 4 Nov 1999 04:40:56 +0000 Subject: Add unsigned char cast to isupper --- lib/libc/stdtime/strptime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/stdtime') 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); -- cgit v1.1