diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-16 15:28:02 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-16 15:28:02 +0100 |
commit | ceef923c8c92d6006f89fddc18af90acdf6dc9f7 (patch) | |
tree | 395f9dfd15363af7063db0e1d43996f3599b7ff1 | |
parent | b250bfe337d33c76d8ca329444b8aac8cdfe0cab (diff) |
Replaced strcat() with strlcat()
-rw-r--r-- | FICS/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |