mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix writing null terminators in config file
This commit is contained in:
parent
85181b5ed3
commit
c3fbdf78c0
|
@ -294,7 +294,7 @@ static void rwopsprintf(SDL_RWops *file, const char *format, ...)
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
vsprintf(buffer, format, args);
|
vsprintf(buffer, format, args);
|
||||||
|
|
||||||
SDL_RWwrite(file, buffer, strlen(buffer) + 1, 1);
|
SDL_RWwrite(file, buffer, strlen(buffer), 1);
|
||||||
|
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue