Use strlcpy, rather than strmcpy, in delete_window().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@328 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -233,7 +233,7 @@ void BX_delete_window(Window *window)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (window->name)
|
if (window->name)
|
||||||
strmcpy(buffer, window->name, BIG_BUFFER_SIZE - 1);
|
strlcpy(buffer, window->name, sizeof buffer);
|
||||||
else
|
else
|
||||||
sprintf(buffer, "%u", window->refnum);
|
sprintf(buffer, "%u", window->refnum);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user