]> diplodocus.org Git - nmh/commitdiff
Cast argument to isspace() to unsigned char instead of int.
authorDavid Levine <levinedl@acm.org>
Thu, 20 Feb 2014 04:01:45 +0000 (22:01 -0600)
committerDavid Levine <levinedl@acm.org>
Thu, 20 Feb 2014 04:01:45 +0000 (22:01 -0600)
sbr/credentials.c

index 2b9e843..9f3faa9 100644 (file)
@@ -21,7 +21,7 @@ init_credentials_file () {
             struct stat st;
             char *filename = cred_style + 5;
 
-            while (*filename  &&  isspace ((int) *filename)) ++filename;
+            while (*filename && isspace ((unsigned char) *filename)) ++filename;
 
             if (*filename == '/') {
                 credentials_file = filename;