X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/4d08de49555f22d1fcf2d9977a19591a0f465b2d..aafaa7fbd122f8109c1a7d99faf74d4892bf22de:/samegame.c?ds=sidebyside diff --git a/samegame.c b/samegame.c index 810a8eb..4bb535d 100644 --- a/samegame.c +++ b/samegame.c @@ -291,9 +291,9 @@ static char *validate_desc(game_params *params, char *desc) char *q = p; int n; - if (!isdigit(*p)) + if (!isdigit((unsigned char)*p)) return "Not enough numbers in string"; - while (isdigit(*p)) p++; + while (isdigit((unsigned char)*p)) p++; if (i < area-1 && *p != ',') return "Expected comma after number";