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:
Tim Cava
2013-08-17 05:06:38 +00:00
parent bcdf91f415
commit 8a0d84b3ab

View File

@@ -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;