diff --git a/source/window.c b/source/window.c index dcf30a5..9a66a27 100644 --- a/source/window.c +++ b/source/window.c @@ -235,7 +235,7 @@ void BX_delete_window(Window *window) if (window->name) strlcpy(buffer, window->name, sizeof buffer); 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