Actually use strlcpy.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@352 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-08-17 07:31:03 +00:00
parent 9a36857761
commit 0b32d978f8

View File

@@ -1031,7 +1031,7 @@ char thing = 0;
if (!strcmp(cmd, "PRIVMSG")) if (!strcmp(cmd, "PRIVMSG"))
strlcpy(tmp, "CTCP_MESSAGE ", sizeof tmp); strlcpy(tmp, "CTCP_MESSAGE ", sizeof tmp);
else else
strmcpy(tmp, "CTCP_REPLY ", sizeof tmp); strlcpy(tmp, "CTCP_REPLY ", sizeof tmp);
} }
strmcat(tmp, text, n->blocksize-3); strmcat(tmp, text, n->blocksize-3);