mirror of
https://github.com/alterware/master-server.git
synced 2025-04-19 03:52:53 +00:00
chore: remove _s functions
This commit is contained in:
parent
32a000195f
commit
da27f374ef
2
deps/libtomcrypt
vendored
2
deps/libtomcrypt
vendored
@ -1 +1 @@
|
||||
Subproject commit fc6b42025b080a19a0a201a427bb8512f251bb7b
|
||||
Subproject commit 54f0456559c8f64b93273a7c71c88a46550eed4e
|
2
deps/libtommath
vendored
2
deps/libtommath
vendored
@ -1 +1 @@
|
||||
Subproject commit 5809141a3a6ec1bf3443c927c02b955e19224016
|
||||
Subproject commit 5938524c60a7168ba5babb3e47b5cd4ee6eadb46
|
2
deps/rapidjson
vendored
2
deps/rapidjson
vendored
@ -1 +1 @@
|
||||
Subproject commit d621dc9e9c77f81e5c8a35b8dcc16dcd63351321
|
||||
Subproject commit 24b5e7a8b27f42fa16b96fc70aade9106cf7102f
|
@ -65,11 +65,7 @@ namespace console
|
||||
{
|
||||
static thread_local char buffer[0x1000];
|
||||
|
||||
#ifdef _WIN32
|
||||
const int count = vsnprintf_s(buffer, _TRUNCATE, message, *ap);
|
||||
#else
|
||||
const int count = vsnprintf(buffer, sizeof(buffer), message, *ap);
|
||||
#endif
|
||||
|
||||
if (count < 0) return {};
|
||||
return {buffer, static_cast<size_t>(count)};
|
||||
|
@ -29,11 +29,7 @@ namespace utils::string
|
||||
|
||||
while (true)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
const auto res = vsnprintf_s(entry->buffer_, entry->size_, _TRUNCATE, format, ap);
|
||||
#else
|
||||
const auto res = vsnprintf(entry->buffer_, entry->size_, format, ap);
|
||||
#endif
|
||||
|
||||
if (res > 0) break; // Success
|
||||
if (res == 0) return nullptr; // Error
|
||||
|
Loading…
x
Reference in New Issue
Block a user