1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Fix #4884: Build hash info at intro is empty

Caused by a small bug in String::AppendFormat.
This commit is contained in:
Ted John
2016-12-16 17:17:22 +00:00
parent dde9fd86f2
commit 4adcbfdb8a

View File

@@ -236,7 +236,7 @@ namespace String
if (i < bufferSize - 1)
{
va_start(args, format);
vsnprintf(buffer, bufferSize - i - 1, format, args);
vsnprintf(dst, bufferSize - i - 1, format, args);
va_end(args);
// Terminate buffer in case formatted string overflowed