aboutsummaryrefslogtreecommitdiff
path: root/samegame.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-07-17 17:10:11 +0000
committerSimon Tatham <anakin@pobox.com>2005-07-17 17:10:11 +0000
commite33a57b703f11de067a400505e2425de3a0b5f9e (patch)
tree124507aa7d97c6b8c92ef41e344764b3884df9df /samegame.c
parent8ac92e860769b822300115064d090cff0645c7dd (diff)
downloadpuzzles-e33a57b703f11de067a400505e2425de3a0b5f9e.zip
puzzles-e33a57b703f11de067a400505e2425de3a0b5f9e.tar.gz
puzzles-e33a57b703f11de067a400505e2425de3a0b5f9e.tar.bz2
puzzles-e33a57b703f11de067a400505e2425de3a0b5f9e.tar.xz
Quite a few instances of the Cardinal Error of Ctype were turned up
by a grep I just did. Oops. [originally from svn r6113]
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";