window.c: Apply patch from tau replacing sprintf() with snprintf().
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@440 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -235,7 +235,7 @@ void BX_delete_window(Window *window)
|
|||||||
if (window->name)
|
if (window->name)
|
||||||
strlcpy(buffer, window->name, sizeof buffer);
|
strlcpy(buffer, window->name, sizeof buffer);
|
||||||
else
|
else
|
||||||
sprintf(buffer, "%u", window->refnum);
|
snprintf(buffer, sizeof buffer, "%u", window->refnum);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If this window is the "previous" window, then we make the current
|
* If this window is the "previous" window, then we make the current
|
||||||
|
|||||||
Reference in New Issue
Block a user