(Fcurrent_time_zone): Cast isalnum() argument to

unsigned char.
From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
This commit is contained in:
Gerd Moellmann 2001-10-09 10:08:13 +00:00
parent 5e5388f653
commit 9fac18bfdf

View file

@ -1780,7 +1780,7 @@ the data it can't find.")
/* On Japanese w32, we can get a Japanese string as time
zone name. Don't accept that. */
char *p;
for (p = s; *p && (isalnum (*p) || *p == ' '); ++p)
for (p = s; *p && (isalnum ((unsigned char)*p) || *p == ' '); ++p)
;
if (p == s || *p)
s = NULL;