From adf7bc4b68c98e96c5b19bdf4d148211a1ddb18a Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 04:59:44 +0000 Subject: [PATCH] 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 --- source/status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/status.c b/source/status.c index 8584ddc..0427382 100644 --- a/source/status.c +++ b/source/status.c @@ -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))