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:
Tim Cava
2013-10-02 00:02:54 +00:00
parent 717d2e88b7
commit 536aea4704

View File

@@ -7186,8 +7186,8 @@ BUILT_IN_FUNCTION(function_prefix, input)
*/ */
if (my_strnicmp(words[0], words[word_index], len_index)) if (my_strnicmp(words[0], words[word_index], len_index))
{ {
retval = new_malloc(len_index + 1); retval = new_malloc(len_index);
strmcpy(retval, words[0], len_index - 1); strlcpy(retval, words[0], len_index);
new_free((char **)&words); new_free((char **)&words);
return retval; return retval;
} }