Procházet zdrojové kódy

Enough with the small buffers already.

Sledgehammer, meet nut.
Iain Patterson před 11 roky
rodič
revize
e19b4a0eed
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);