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:
@@ -1183,9 +1183,9 @@ static char my_buffer[IRCD_BUFFER_SIZE + 1];
|
|||||||
is_channel_mode(window->current_channel,
|
is_channel_mode(window->current_channel,
|
||||||
MODE_PRIVATE | MODE_SECRET,
|
MODE_PRIVATE | MODE_SECRET,
|
||||||
window->server))
|
window->server))
|
||||||
strmcpy(channel, "*private*", IRCD_BUFFER_SIZE);
|
strlcpy(channel, "*private*", sizeof channel);
|
||||||
else
|
else
|
||||||
strmcpy(channel, window->current_channel, IRCD_BUFFER_SIZE);
|
strlcpy(channel, window->current_channel, sizeof channel);
|
||||||
|
|
||||||
#ifdef WANT_HEBREW
|
#ifdef WANT_HEBREW
|
||||||
if (get_int_var(HEBREW_TOGGLE_VAR))
|
if (get_int_var(HEBREW_TOGGLE_VAR))
|
||||||
|
|||||||
Reference in New Issue
Block a user