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:
@@ -335,7 +335,7 @@ extern char *BX_extract(char *start, int firstword, int lastword)
|
|||||||
return m_strdup(empty_string);
|
return m_strdup(empty_string);
|
||||||
|
|
||||||
booya = new_malloc(mark2 - mark + 1);
|
booya = new_malloc(mark2 - mark + 1);
|
||||||
strmcpy(booya, mark, (mark2 - mark));
|
strlcpy(booya, mark, mark2 - mark + 1);
|
||||||
#if 0
|
#if 0
|
||||||
malloc_strcpy(&booya, empty_string);
|
malloc_strcpy(&booya, empty_string);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user