X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftap%2Ftap.c;h=9f6d4d066a4e7068d16bc05659cb47fd680b3f6b;hb=5b0bdc23fbc8549f8d2e3034cd0c3e018dd994ad;hp=6d3ba0db18923a3eadacdad294cbe1d38ef69884;hpb=39dc9e4612339af669e934c47500605f826a2bb4;p=ccan diff --git a/ccan/tap/tap.c b/ccan/tap/tap.c index 6d3ba0db..9f6d4d06 100644 --- a/ccan/tap/tap.c +++ b/ccan/tap/tap.c @@ -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; }