shithub: puzzles

Download patch

ref: aaa36328dd33e255e41547fdeab08fe93e3db716
parent: 80f64cfcdafd3d0c4578ad7d559f38018d583c15
author: Chris Boyle <chris@boyle.name>
date: Tue Jan 17 17:22:03 EST 2023

Fix mosaic's validate_desc: 9 is valid

This rejected valid games that include a '9' clue.

Fixes Android issue #582.

--- a/mosaic.c
+++ b/mosaic.c
@@ -840,7 +840,7 @@
     while (*curr_desc != '\0') {
         if (*curr_desc >= 'a' && *curr_desc <= 'z') {
             length += *curr_desc - 'a';
-        } else if (*curr_desc < '0' || *curr_desc >= '9')
+        } else if (*curr_desc < '0' || *curr_desc > '9')
             return "Invalid character in game description";
         length++;
         curr_desc++;