From 43465762bd19bdd4cc72e41e03e69dba66f96ea7 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 5 Apr 2024 14:30:26 +0200 Subject: Replaced unbounded strcat() calls --- FICS/ratings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FICS/ratings.c b/FICS/ratings.c index 7922919..2eaa5c2 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1475,11 +1475,11 @@ DisplayRankHead(int p, int show) char Line[MAX_STRING_LENGTH] = { '\0' }; if (CheckFlag(show, SHOW_BLITZ)) - strcat(Line, " Blitz "); + strlcat(Line, " Blitz ", sizeof(Line)); if (CheckFlag(show, SHOW_STANDARD)) - strcat(Line, " Standard "); + strlcat(Line, " Standard ", sizeof(Line)); if (CheckFlag(show, SHOW_WILD)) - strcat(Line, " Wild"); + strlcat(Line, " Wild", sizeof(Line)); pprintf(p, "%s\n\n", Line); } -- cgit v1.2.3