tap: fix isdigit and isspace usage.
[ccan] / ccan / tap / tap.c
index 6d3ba0db18923a3eadacdad294cbe1d38ef69884..9f6d4d066a4e7068d16bc05659cb47fd680b3f6b 100644 (file)
@@ -115,7 +115,8 @@ _gen_result(int ok, const char *func, const char *file, unsigned int line,
                if(local_test_name) {
                        name_is_digits = 1;
                        for(c = local_test_name; *c != '\0'; c++) {
-                               if(!isdigit(*c) && !isspace(*c)) {
+                               if(!isdigit((unsigned char)*c)
+                                  && !isspace((unsigned char)*c)) {
                                        name_is_digits = 0;
                                        break;
                                }