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

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

View File

@@ -335,7 +335,7 @@ extern char *BX_extract(char *start, int firstword, int lastword)
return m_strdup(empty_string);
booya = new_malloc(mark2 - mark + 1);
strmcpy(booya, mark, (mark2 - mark));
strlcpy(booya, mark, mark2 - mark + 1);
#if 0
malloc_strcpy(&booya, empty_string);
else