aboutsummaryrefslogtreecommitdiff
path: root/samegame.c
diff options
context:
space:
mode:
Diffstat (limited to 'samegame.c')
-rw-r--r--samegame.c4
1 files changed, 2 insertions, 2 deletions
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";