chore: update
This commit is contained in:
@@ -29,7 +29,7 @@ namespace utils::string
|
||||
|
||||
while (true)
|
||||
{
|
||||
const int res = vsnprintf(entry->buffer_, entry->size_, format, ap);
|
||||
const auto res = vsnprintf_s(entry->buffer_, entry->size_, _TRUNCATE, format, ap);
|
||||
if (res > 0) break; // Success
|
||||
if (res == 0) return nullptr; // Error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user