diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-07-17 17:10:11 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-07-17 17:10:11 +0000 |
| commit | e33a57b703f11de067a400505e2425de3a0b5f9e (patch) | |
| tree | 124507aa7d97c6b8c92ef41e344764b3884df9df /pattern.c | |
| parent | 8ac92e860769b822300115064d090cff0645c7dd (diff) | |
| download | puzzles-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 'pattern.c')
| -rw-r--r-- | pattern.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -106,11 +106,11 @@ static void decode_params(game_params *ret, char const *string) char const *p = string; ret->w = atoi(p); - while (*p && isdigit(*p)) p++; + while (*p && isdigit((unsigned char)*p)) p++; if (*p == 'x') { p++; ret->h = atoi(p); - while (*p && isdigit(*p)) p++; + while (*p && isdigit((unsigned char)*p)) p++; } else { ret->h = ret->w; } |