From 8847b362a7afe98509ecb7bc7cd48623d5837d89 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Wed, 2 Mar 2022 10:10:03 +0000 Subject: [PATCH] Use c++ template function for vsnprintf --- src/Components/Modules/Script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/Script.cpp b/src/Components/Modules/Script.cpp index 6c47788a..3520065e 100644 --- a/src/Components/Modules/Script.cpp +++ b/src/Components/Modules/Script.cpp @@ -193,7 +193,7 @@ namespace Components char msgbuf[1024] = {0}; va_list va; va_start(va, message); - vsnprintf_s(msgbuf, sizeof(msgbuf), _TRUNCATE, message, va); + _vsnprintf_s(msgbuf, _TRUNCATE, message, va); va_end(va); Game::Scr_ShutdownAllocNode();