From ceef923c8c92d6006f89fddc18af90acdf6dc9f7 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 16 Mar 2024 15:28:02 +0100 Subject: Replaced strcat() with strlcat() --- FICS/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FICS/utils.c b/FICS/utils.c index f182256..b8af230 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -668,7 +668,7 @@ hms(int t, int showhour, int showseconds, int spaces) snprintf(tmp, sizeof tmp, " : %02d", s); else snprintf(tmp, sizeof tmp, ":%02d", s); - strcat(tstr, tmp); + strlcat(tstr, tmp, sizeof tstr); } return tstr; } -- cgit v1.2.3