]> granicus.if.org Git - sudo/commitdiff
Cast isblank argument to unsigned char.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 16 Sep 2010 14:40:34 +0000 (10:40 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 16 Sep 2010 14:40:34 +0000 (10:40 -0400)
--HG--
branch : 1.7

defaults.c
fileops.c

index 79271ef3273ac70867cd4d7685f3a4fba69ead80..d390a5a23eb0d84846ff8099724b21adca48e49c 100644 (file)
@@ -684,13 +684,13 @@ store_list(str, def, op)
        end = str;
        do {
            /* Remove leading blanks, if nothing but blanks we are done. */
-           for (start = end; isblank(*start); start++)
+           for (start = end; isblank((unsigned char)*start); start++)
                ;
            if (*start == '\0')
                break;
 
            /* Find end position and perform operation. */
-           for (end = start; *end && !isblank(*end); end++)
+           for (end = start; *end && !isblank((unsigned char)*end); end++)
                ;
            list_op(start, end - start, def, op == '-' ? delete : add);
        } while (*end++ != '\0');
index ca4903fe0987aef66da165e446573ebbcd0c67d3..5ef3cf30e9b0e525e1d31c20f223a5c8e43bc784 100644 (file)
--- a/fileops.c
+++ b/fileops.c
@@ -170,7 +170,7 @@ sudo_parseln(fp)
        len = strlen(buf);
        while (len > 0 && isspace((unsigned char)buf[len - 1]))
            buf[--len] = '\0';
-       for (cp = buf; isblank(*cp); cp++)
+       for (cp = buf; isblank((unsigned char)*cp); cp++)
            continue;
     }
     return(cp);