Use strlcpy, rather than strmcpy, in extract2().

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@374 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-09-21 05:11:07 +00:00
parent 21612025eb
commit d01233f559

View File

@@ -244,7 +244,7 @@ extern char *BX_extract2(const char *start, int firstword, int lastword)
*mark2 = tmp;
#endif
booya = new_malloc(mark2 - mark + 1);
strmcpy(booya, mark, (mark2 - mark));
strlcpy(booya, mark, mark2 - mark + 1);
}
return booya;