(Fcurrent_time_zone): Cast isalnum() argument to
authorGerd Moellmann <gerd@gnu.org>
Tue, 9 Oct 2001 10:08:13 +0000 (10:08 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 9 Oct 2001 10:08:13 +0000 (10:08 +0000)
unsigned char.
From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.

src/editfns.c

index bb92f44..90be6ba 100644 (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;