summaryrefslogtreecommitdiff
path: root/src/shared/error_report.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-02-25 18:38:01 +0100
committerTannin <devnull@localhost>2015-02-25 18:38:01 +0100
commit6479f972dccaabb3afadb570583a4269e8a785e4 (patch)
treeb36ec1afc65e123b893215a2529bb20c25041adb /src/shared/error_report.cpp
parente01ab940b0d76bfec8d7037ee56938780a74dc5b (diff)
tons of code cleanup and minor fixes to harden the code (mostly suggestions from static code analysis)
Diffstat (limited to 'src/shared/error_report.cpp')
-rw-r--r--src/shared/error_report.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/error_report.cpp b/src/shared/error_report.cpp
index c9277c1b..6d091630 100644
--- a/src/shared/error_report.cpp
+++ b/src/shared/error_report.cpp
@@ -46,8 +46,7 @@ void reportError(LPCWSTR format, ...)
va_list argList;
va_start(argList, format);
-
- _vsnwprintf(buffer, 1024, format, argList);
+ _vsnwprintf_s(buffer, 1024, format, argList);
va_end(argList);
MessageBoxW(nullptr, buffer, L"Error", MB_OK | MB_ICONERROR);