X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=event.cpp;fp=event.cpp;h=4af50a86a925399aa93c8d4835742406c6f7ad84;hb=dd0e555ba889a74ae14487ca0b4a5c62cfa4d873;hp=1313351ad5c76ceddda94cf0b183d693d1d696d0;hpb=7aa403b0a0d8ecf1e59c9d4ab3709181941e2f4c;p=nssm.git diff --git a/event.cpp b/event.cpp index 1313351..4af50a8 100644 --- a/event.cpp +++ b/event.cpp @@ -80,12 +80,12 @@ int popup_message(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[512]; + TCHAR blurb[1024]; va_start(arg, id); if (_vsntprintf_s(blurb, _countof(blurb), _TRUNCATE, format, arg) < 0) { va_end(arg); LocalFree(format); - return MessageBox(0, _T("the message which was supposed to go here is too big!"), NSSM, MB_OK | MB_ICONEXCLAMATION); + return MessageBox(0, _T("The message which was supposed to go here is too big!"), NSSM, MB_OK | MB_ICONEXCLAMATION); } va_end(arg);