From d56010df9b2d446d86acf9a26ac9634f8e122c42 Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 04:54:42 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in status_umode(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@334 13b04d17-f746-0410-82c6-800466cd88b0 --- source/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/status.c b/source/status.c index 856862c..8584ddc 100644 --- a/source/status.c +++ b/source/status.c @@ -1110,7 +1110,7 @@ static char my_buffer[MY_BUFFER/2+1]; *localbuf = 0; else { if (window->server > -1) - strmcpy(localbuf, get_umode(window->server), MY_BUFFER); + strlcpy(localbuf, get_umode(window->server), sizeof localbuf); else *localbuf = 0; }