Merge pull request #28544 from neikeq/issue-28540
Fix missing argument for vsnprintf_s
This commit is contained in:
commit
7ff0979747
1 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include "core/os/file_access.h"
|
#include "core/os/file_access.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
@ -210,7 +211,7 @@ String str_format(const char *p_format, ...) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MINGW_ENABLED) || defined(_MSC_VER)
|
#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
|
#endif
|
||||||
|
|
||||||
String str_format(const char *p_format, va_list p_list) {
|
String str_format(const char *p_format, va_list p_list) {
|
||||||
|
|
Loading…
Reference in a new issue