mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 15:41:30 -07:00
Quite a few instances of the Cardinal Error of Ctype were turned up
by a grep I just did. Oops. [originally from svn r6113]
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user