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
This commit is contained in:
Tim Cava
2013-08-17 04:54:42 +00:00
parent fdddcf99bf
commit d56010df9b

View File

@@ -1110,7 +1110,7 @@ static char my_buffer[MY_BUFFER/2+1];
*localbuf = 0; *localbuf = 0;
else { else {
if (window->server > -1) if (window->server > -1)
strmcpy(localbuf, get_umode(window->server), MY_BUFFER); strlcpy(localbuf, get_umode(window->server), sizeof localbuf);
else else
*localbuf = 0; *localbuf = 0;
} }