Fix ctype arguments.
[openssl.git] / test / testutil / stanza.c
index 35967528f8312c4c918175a6d3f6d2a558b55b4d..09fc18108079194f0a70d347095b081012bada95 100644 (file)
@@ -70,12 +70,12 @@ static char *strip_spaces(char *p)
     char *q;
 
     /* Skip over leading spaces */
     char *q;
 
     /* Skip over leading spaces */
-    while (*p && isspace(*p))
+    while (*p && isspace((unsigned char)*p))
         p++;
     if (!*p)
         return NULL;
 
         p++;
     if (!*p)
         return NULL;
 
-    for (q = p + strlen(p) - 1; q != p && isspace(*q); )
+    for (q = p + strlen(p) - 1; q != p && isspace((unsigned char)*q); )
         *q-- = '\0';
     return *p ? p : NULL;
 }
         *q-- = '\0';
     return *p ? p : NULL;
 }