aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-05 14:30:26 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-05 14:30:26 +0200
commit43465762bd19bdd4cc72e41e03e69dba66f96ea7 (patch)
tree1db1c6a0d384dae87152be00e2e8939457fa54c2
parent8f1156f66fd15cad9f92d21a6f4a539ae00fb08d (diff)
Replaced unbounded strcat() calls
-rw-r--r--FICS/ratings.c6
1 files 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);
}