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

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@326 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-08-15 10:35:43 +00:00
parent 68c3df7c6c
commit 72cf367e45

View File

@@ -2811,7 +2811,7 @@ void accept_server_nickname (int ssn_index, char *nick)
server_list[ssn_index].fudge_factor = 0;
if (ssn_index == primary_server)
strmcpy(nickname, nick, NICKNAME_LEN);
strlcpy(nickname, nick, sizeof nickname);
update_all_status(current_window, NULL, 0);
update_input(UPDATE_ALL);