From f8b657ed1a46dd2c04393b9c59ddbe434afce8bc Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 17 Jul 2024 17:27:29 +0200 Subject: Attempt to fix a crash --- FICS/gamedb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FICS/gamedb.c b/FICS/gamedb.c index 8723dc4..ea23704 100644 --- a/FICS/gamedb.c +++ b/FICS/gamedb.c @@ -230,6 +230,10 @@ game_str(int rated, int wt, int winc, int bt, int binc, char *cat, char *board) { static char tstr[200] = { '\0' }; + if (rated != TYPE_UNRATED && + rated != TYPE_RATED) + rated = TYPE_UNRATED; + if (cat && cat[0] && board && board[0] && (strcmp(cat, "standard") || strcmp(board, "standard"))) { msnprintf(tstr, sizeof(tstr), "%s %s%s Loaded from %s/%s", -- cgit v1.2.3