Use memcpy, rather than strmcpy or strlcpy, in parse_command(). Suggested

by caf.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@316 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-08-14 04:15:09 +00:00
parent 0460b22bb0
commit b1d55bce82

View File

@@ -4637,7 +4637,8 @@ static unsigned int level = 0;
if ((rest = strchr(line, ' ')))
{
cline = alloca((rest - line) + 1);
strmcpy(cline, line, (rest - line));
memcpy(cline, line, rest - line);
cline[rest - line] = 0;
rest++;
}
else