mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add unsigned char cast to isupper
This commit is contained in:
parent
3fb85bff81
commit
3c7ffaa1fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue