Use strlcpy, rather than strmcpy, in status_refnum().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@337 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1406,7 +1406,7 @@ char *text;
|
|||||||
static char *status_refnum(Window *window)
|
static char *status_refnum(Window *window)
|
||||||
{
|
{
|
||||||
static char my_buffer[MY_BUFFER/3+1];
|
static char my_buffer[MY_BUFFER/3+1];
|
||||||
strmcpy(my_buffer, window->name ? window->name : ltoa(window->refnum), MY_BUFFER/3);
|
strlcpy(my_buffer, window->name ? window->name : ltoa(window->refnum), sizeof my_buffer);
|
||||||
return (my_buffer);
|
return (my_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user