From ba944f9f95238d0b820e63d9b6c2d83efc09b8a2 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 8 Jan 2023 10:42:45 +0000 Subject: [PATCH] Tighten Bridges' validate_desc() It allowed V, W, X, Y, H, I, J, and K to appear in game descriptions even though new_game() didn't ascribe any meaning to those letters and would fail an assertion if they ever occurred. As far as I can tell, those letters have never done anything, so I've just removed the checks for them from validate_desc(). --- bridges.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bridges.c b/bridges.c index ec25cab..35cdcca 100644 --- a/bridges.c +++ b/bridges.c @@ -2016,11 +2016,6 @@ static const char *validate_desc(const game_params *params, const char *desc) i += *desc - 'a'; /* plus the i++ */ else if (*desc >= 'A' && *desc <= 'G') /* OK */; - else if (*desc == 'V' || *desc == 'W' || - *desc == 'X' || *desc == 'Y' || - *desc == 'H' || *desc == 'I' || - *desc == 'J' || *desc == 'K') - /* OK */; else if (!*desc) return "Game description shorter than expected"; else