mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 16:32:13 -07:00
Fix incorrect uses of ctype.h (passing it uncast chars, or other
things potentially not in the range 0..255). [originally from svn r8922]
This commit is contained in:
@ -513,7 +513,7 @@ static void unpick_desc(game_params *params, char *desc,
|
||||
}
|
||||
|
||||
c = *desc;
|
||||
if (isdigit(c)) {
|
||||
if (isdigit((unsigned char)c)) {
|
||||
num = (num*10) + (int)(c-'0');
|
||||
if (num > state->n) {
|
||||
msg = "Number too large";
|
||||
|
Reference in New Issue
Block a user