~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Sync with website
[sgt/puzzles]
/
samegame.c
diff --git
a/samegame.c
b/samegame.c
index
810a8eb
..
4bb535d
100644
(file)
--- 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";