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:
@@ -4637,7 +4637,8 @@ static unsigned int level = 0;
|
|||||||
if ((rest = strchr(line, ' ')))
|
if ((rest = strchr(line, ' ')))
|
||||||
{
|
{
|
||||||
cline = alloca((rest - line) + 1);
|
cline = alloca((rest - line) + 1);
|
||||||
strmcpy(cline, line, (rest - line));
|
memcpy(cline, line, rest - line);
|
||||||
|
cline[rest - line] = 0;
|
||||||
rest++;
|
rest++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user