]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
cast to unsigned char
authorMark Andrews <marka@isc.org>
Thu, 16 Jan 2014 00:46:28 +0000 (11:46 +1100)
committerMark Andrews <marka@isc.org>
Thu, 16 Jan 2014 00:46:28 +0000 (11:46 +1100)
lib/isc/tm.c

index 9f19f0727c8d17e2fdad8677aea4fa30c65746d0..713ce0e537814df580f0fbf69eec75a82444ca0e 100644 (file)
@@ -161,8 +161,8 @@ isc_tm_strptime(const char *buf, const char *fmt, struct tm *tm) {
                alt_format = 0;
 
                /* Eat up white-space. */
-               if (isspace((int) c)) {
-                       while (isspace((int) *bp))
+               if (isspace((unsigned char) c)) {
+                       while (isspace((unsigned char) *bp))
                                bp++;
 
                        fmt++;
@@ -427,7 +427,7 @@ literal:
                case 'n':       /* Any kind of white-space. */
                case 't':
                        LEGAL_ALT(0);
-                       while (isspace((int) *bp))
+                       while (isspace((unsigned char) *bp))
                                bp++;
                        break;