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
This commit is contained in:
Tim Cava
2013-08-17 07:29:02 +00:00
parent ebd5398d89
commit 9a36857761

View File

@@ -1029,9 +1029,9 @@ char thing = 0;
if (cmd && *text == CTCP_DELIM_CHAR && strncmp(text+1, "ACTION", 6)) if (cmd && *text == CTCP_DELIM_CHAR && strncmp(text+1, "ACTION", 6))
{ {
if (!strcmp(cmd, "PRIVMSG")) if (!strcmp(cmd, "PRIVMSG"))
strmcpy(tmp, "CTCP_MESSAGE ", n->blocksize); strlcpy(tmp, "CTCP_MESSAGE ", sizeof tmp);
else else
strmcpy(tmp, "CTCP_REPLY ", n->blocksize); strmcpy(tmp, "CTCP_REPLY ", sizeof tmp);
} }
strmcat(tmp, text, n->blocksize-3); strmcat(tmp, text, n->blocksize-3);