From 8f86b3aad79a7937313fc6a70cd509e6e30429cc Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 2 Jul 2022 15:32:01 +0300 Subject: [PATCH 40/40] Replace strncat() call with a fc_strlcat() one See osdn #44919 Signed-off-by: Marko Lindqvist --- client/messagewin_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/messagewin_common.c b/client/messagewin_common.c index 41e3f2843b..1b940a5be7 100644 --- a/client/messagewin_common.c +++ b/client/messagewin_common.c @@ -117,7 +117,7 @@ void meswin_add(const char *message, const struct text_tag_list *tags, nspc = min_msg_len - strlen(s); if (nspc > 0) { - strncat(s, " ", nspc); + fc_strlcat(s, " ", min_msg_len); } msg->tile = ptile; -- 2.35.1