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:
@@ -244,7 +244,7 @@ extern char *BX_extract2(const char *start, int firstword, int lastword)
|
|||||||
*mark2 = tmp;
|
*mark2 = tmp;
|
||||||
#endif
|
#endif
|
||||||
booya = new_malloc(mark2 - mark + 1);
|
booya = new_malloc(mark2 - mark + 1);
|
||||||
strmcpy(booya, mark, (mark2 - mark));
|
strlcpy(booya, mark, mark2 - mark + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return booya;
|
return booya;
|
||||||
|
|||||||
Reference in New Issue
Block a user