소스 검색

Enough with the small buffers already.

Sledgehammer, meet nut.
Iain Patterson 10 년 전
부모
커밋
e19b4a0eed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);