X-Git-Url: http://git.iain.cx/?p=nssm.git;a=blobdiff_plain;f=event.cpp;h=b44482c2ab2fc2fdcccfcf05f7a0efe426fed394;hp=0bf8960f9a0c8af76160d3e30b0feac846a8a4b1;hb=HEAD;hpb=3f77c8a2c04c269f7e293a0cec517cb9cb8c5d49 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);