mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Fix vsnprintf usage in ASSERT()
Fix vsnprintf to follow standard definition and not some old VC++ behavior, not requiring to include the '\0' character in the count parameter
This commit is contained in:
@@ -60,7 +60,7 @@ namespace
|
||||
va_end(len);
|
||||
|
||||
formatted.resize(length);
|
||||
vsnprintf(&formatted[0], length, format, args);
|
||||
vsnprintf(&formatted[0], length + 1, format, args);
|
||||
|
||||
return formatted;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user