summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-01 07:18:31 +0200
committerGitHub <noreply@github.com>2019-05-01 07:18:31 +0200
commit7ff0979747bd245074ab50886db575e2bd045d9a (patch)
tree683220e385e4940f8b1e23560a2fb3d8df2a594f /modules/mono
parentdd2cd06165670bb0d78bf4aa397935be15716e76 (diff)
parent4eedb9780233d2bf7cb30cfb553d24cb7062b941 (diff)
Merge pull request #28544 from neikeq/issue-28540
Fix missing argument for vsnprintf_s
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/utils/string_utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mono/utils/string_utils.cpp b/modules/mono/utils/string_utils.cpp
index 0ef66577fe..1fdddd3925 100644
--- a/modules/mono/utils/string_utils.cpp
+++ b/modules/mono/utils/string_utils.cpp
@@ -33,6 +33,7 @@
#include "core/os/file_access.h"
#include <stdio.h>
+#include <stdlib.h>
namespace {
@@ -210,7 +211,7 @@ String str_format(const char *p_format, ...) {
#endif
#if defined(MINGW_ENABLED) || defined(_MSC_VER)
-#define vsnprintf vsnprintf_s
+#define vsnprintf(m_buffer, m_count, m_format, m_argptr) vsnprintf_s(m_buffer, m_count, _TRUNCATE, m_format, m_argptr)
#endif
String str_format(const char *p_format, va_list p_list) {