From 9a3685776161f4849a4c61aecc13050d50b792f0 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 07:29:02 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in new_dcc_message_transmit(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@351 13b04d17-f746-0410-82c6-800466cd88b0 --- source/dcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dcc.c b/source/dcc.c index 1823604..5c0c5d4 100644 --- a/source/dcc.c +++ b/source/dcc.c @@ -1029,9 +1029,9 @@ char thing = 0; if (cmd && *text == CTCP_DELIM_CHAR && strncmp(text+1, "ACTION", 6)) { if (!strcmp(cmd, "PRIVMSG")) - strmcpy(tmp, "CTCP_MESSAGE ", n->blocksize); + strlcpy(tmp, "CTCP_MESSAGE ", sizeof tmp); else - strmcpy(tmp, "CTCP_REPLY ", n->blocksize); + strmcpy(tmp, "CTCP_REPLY ", sizeof tmp); } strmcat(tmp, text, n->blocksize-3);