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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user