Use strlcpy, rather than strmcpy, in status_windowspec().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@338 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1655,7 +1655,7 @@ static char *status_windowspec (Window *window)
|
||||
{
|
||||
static char my_buffer[81];
|
||||
if (window->wset->window_special_format)
|
||||
strmcpy(my_buffer, window->wset->window_special_format, 80);
|
||||
strlcpy(my_buffer, window->wset->window_special_format, sizeof my_buffer);
|
||||
else
|
||||
*my_buffer = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user