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:
jackpoz
2018-12-16 12:09:20 +01:00
parent 9a924fb9d5
commit eee1f2cadf

View File

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