chore: remove _s functions

This commit is contained in:
6arelyFuture 2025-02-06 11:48:54 +01:00
parent 32a000195f
commit da27f374ef
Signed by: Future
GPG Key ID: F2000F181A4F7C85
5 changed files with 3 additions and 11 deletions

2
deps/libtomcrypt vendored

@ -1 +1 @@
Subproject commit fc6b42025b080a19a0a201a427bb8512f251bb7b
Subproject commit 54f0456559c8f64b93273a7c71c88a46550eed4e

2
deps/libtommath vendored

@ -1 +1 @@
Subproject commit 5809141a3a6ec1bf3443c927c02b955e19224016
Subproject commit 5938524c60a7168ba5babb3e47b5cd4ee6eadb46

2
deps/rapidjson vendored

@ -1 +1 @@
Subproject commit d621dc9e9c77f81e5c8a35b8dcc16dcd63351321
Subproject commit 24b5e7a8b27f42fa16b96fc70aade9106cf7102f

View File

@ -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)};

View File

@ -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