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

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@367 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-08-23 05:37:03 +00:00
parent 4ba3f45a89
commit c13b00be0c

View File

@@ -502,7 +502,7 @@ extern void input_move_cursor (int dir)
*/
void BX_set_input (char *str)
{
strmcpy(INPUT_BUFFER + MIN_POS, str, INPUT_BUFFER_SIZE - MIN_POS);
strlcpy(INPUT_BUFFER + MIN_POS, str, INPUT_BUFFER_SIZE - MIN_POS);
THIS_POS = strlen(INPUT_BUFFER);
}