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

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@335 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-08-17 04:59:44 +00:00
parent d56010df9b
commit adf7bc4b68

View File

@@ -1183,9 +1183,9 @@ static char my_buffer[IRCD_BUFFER_SIZE + 1];
is_channel_mode(window->current_channel,
MODE_PRIVATE | MODE_SECRET,
window->server))
strmcpy(channel, "*private*", IRCD_BUFFER_SIZE);
strlcpy(channel, "*private*", sizeof channel);
else
strmcpy(channel, window->current_channel, IRCD_BUFFER_SIZE);
strlcpy(channel, window->current_channel, sizeof channel);
#ifdef WANT_HEBREW
if (get_int_var(HEBREW_TOGGLE_VAR))