From e19b4a0eedf34a09e999394a2863cb2ef47cdc14 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 27 Jan 2014 19:05:46 +0000 Subject: [PATCH] Enough with the small buffers already. Sledgehammer, meet nut. --- event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.cpp b/event.cpp index 0bf8960..b44482c 100644 --- a/event.cpp +++ b/event.cpp @@ -81,7 +81,7 @@ int popup_message(HWND owner, unsigned int type, unsigned long id, ...) { return MessageBox(0, _T("The message which was supposed to go here is missing!"), NSSM, MB_OK | MB_ICONEXCLAMATION); } - TCHAR blurb[1024]; + TCHAR blurb[NSSM_ERROR_BUFSIZE]; va_start(arg, id); if (_vsntprintf_s(blurb, _countof(blurb), _TRUNCATE, format, arg) < 0) { va_end(arg); -- 2.7.4