mirror of
https://github.com/alterware/master-server.git
synced 2025-06-27 06:41:53 +00:00
maint(console): use _TRUNCATE
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user