maint(console): use _TRUNCATE

This commit is contained in:
2023-07-02 16:19:30 +02:00
committed by GitHub
parent b80aa01f2b
commit 72feadab52

View File

@ -66,7 +66,7 @@ namespace console
static thread_local char buffer[0x1000];
#ifdef _WIN32
const int count = _vsnprintf_s(buffer, sizeof(buffer), sizeof(buffer), message, *ap);
const int count = vsnprintf_s(buffer, _TRUNCATE, message, *ap);
#else
const int count = vsnprintf(buffer, sizeof(buffer), message, *ap);
#endif