From 0a9b0a7384e664126a3af418f047ef627c7ac279 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 17 Apr 2010 13:27:15 +0000 Subject: Fix incorrect uses of ctype.h (passing it uncast chars, or other things potentially not in the range 0..255). [originally from svn r8922] --- filling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filling.c') diff --git a/filling.c b/filling.c index 896fe41..b6d0ed1 100644 --- a/filling.c +++ b/filling.c @@ -1100,7 +1100,7 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, button = 0; break; default: - if (!isdigit(button)) return NULL; + if (button < '0' || button > '9') return NULL; button -= '0'; if (button > (w == 2 && h == 2? 3: max(w, h))) return NULL; } -- cgit v1.1