Use strlcpy, rather than strmcpy, in set_server_nickname().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@325 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -2244,7 +2244,7 @@ void BX_set_server_nickname (int ssn_index, char *nick)
|
|||||||
{
|
{
|
||||||
malloc_strcpy(&(server_list[ssn_index].nickname), nick);
|
malloc_strcpy(&(server_list[ssn_index].nickname), nick);
|
||||||
if (ssn_index == primary_server)
|
if (ssn_index == primary_server)
|
||||||
strmcpy(nickname,nick, NICKNAME_LEN );
|
strlcpy(nickname, nick, sizeof nickname);
|
||||||
}
|
}
|
||||||
update_all_status(current_window, NULL, 0);
|
update_all_status(current_window, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user