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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user