Enough with the small buffers already.
authorIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 19:05:46 +0000 (19:05 +0000)
committerIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 19:05:46 +0000 (19:05 +0000)
Sledgehammer, meet nut.

event.cpp

index 0bf8960..b44482c 100644 (file)
--- 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);\r
   }\r
 \r
-  TCHAR blurb[1024];\r
+  TCHAR blurb[NSSM_ERROR_BUFSIZE];\r
   va_start(arg, id);\r
   if (_vsntprintf_s(blurb, _countof(blurb), _TRUNCATE, format, arg) < 0) {\r
     va_end(arg);\r