1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

fix writing null terminators in config file

This commit is contained in:
IntelOrca
2015-09-05 19:32:01 +01:00
parent 85181b5ed3
commit c3fbdf78c0

View File

@@ -294,7 +294,7 @@ static void rwopsprintf(SDL_RWops *file, const char *format, ...)
char buffer[64];
vsprintf(buffer, format, args);
SDL_RWwrite(file, buffer, strlen(buffer) + 1, 1);
SDL_RWwrite(file, buffer, strlen(buffer), 1);
va_end(args);
}