diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-07-17 17:27:29 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-07-17 17:27:29 +0200 |
commit | f8b657ed1a46dd2c04393b9c59ddbe434afce8bc (patch) | |
tree | 34aae6fd9355462a840c089624ae184da8621e4a /FICS/gamedb.c | |
parent | f9b4e2bf9bd3757eed1537e8d1669a11b42843b8 (diff) |
Attempt to fix a crash
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r-- | FICS/gamedb.c | 4 |
1 files changed, 4 insertions, 0 deletions
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", |