Use strlcpy, rather than strmcpy, in function_prefix. From caf.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@378 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -7186,8 +7186,8 @@ BUILT_IN_FUNCTION(function_prefix, input)
|
||||
*/
|
||||
if (my_strnicmp(words[0], words[word_index], len_index))
|
||||
{
|
||||
retval = new_malloc(len_index + 1);
|
||||
strmcpy(retval, words[0], len_index - 1);
|
||||
retval = new_malloc(len_index);
|
||||
strlcpy(retval, words[0], len_index);
|
||||
new_free((char **)&words);
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user