From 6e5f287606a3039ee26eb4fc8c8f7a05deebe9f0 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 1 Jan 2017 14:57:30 -0500 Subject: Fixes and re-sync for puzzles - Updates to latest upstream (7cae89fb4b22c305b3fd98b4e1be065ad527a9f7). - Also fixes a bug relating to updating parts of the display. - Adds some docs. Change-Id: Idfcce66e0cf3c59e467bab42eafc161df2e495bb --- apps/plugins/puzzles/unequal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/puzzles/unequal.c') diff --git a/apps/plugins/puzzles/unequal.c b/apps/plugins/puzzles/unequal.c index 457965b4ff..1293de28e8 100644 --- a/apps/plugins/puzzles/unequal.c +++ b/apps/plugins/puzzles/unequal.c @@ -1214,7 +1214,7 @@ static game_state *load_game(const game_params *params, const char *desc, why = "Too much data to fill grid"; goto fail; } - if (*p < '0' && *p > '9') { + if (*p < '0' || *p > '9') { why = "Expecting number in game description"; goto fail; } n = atoi(p); -- cgit v1.2.3