summaryrefslogtreecommitdiff
path: root/src/shared/error_report.cpp
diff options
context:
space:
mode:
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);