git://git.iain.cx/iain
/
nssm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
997e224
)
Enough with the small buffers already.
author
Iain Patterson
<me@iain.cx>
Mon, 27 Jan 2014 19:05:46 +0000
(19:05 +0000)
committer
Iain Patterson
<me@iain.cx>
Mon, 27 Jan 2014 19:05:46 +0000
(19:05 +0000)
Sledgehammer, meet nut.
event.cpp
patch
|
blob
|
history
diff --git
a/event.cpp
b/event.cpp
index
0bf8960
..
b44482c
100644
(file)
--- 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);
\r
}
\r
\r
- TCHAR blurb[
1024
];
\r
+ TCHAR blurb[
NSSM_ERROR_BUFSIZE
];
\r
va_start(arg, id);
\r
if (_vsntprintf_s(blurb, _countof(blurb), _TRUNCATE, format, arg) < 0) {
\r
va_end(arg);
\r