Browse Source

Enough with the small buffers already.

Sledgehammer, meet nut.
Iain Patterson 7 years ago
parent
commit
e19b4a0eed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      event.cpp

+ 1 - 1
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);