You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07:00
Allocate enough memory for server entries, fix #3144
This commit is contained in:
@@ -500,7 +500,7 @@ static char *freadstralloc(SDL_RWops *file)
|
||||
if (SDL_RWread(file, &c, 1, 1) != 1) break;
|
||||
if (c == 0) break;
|
||||
|
||||
if (length > capacity) {
|
||||
if (length >= capacity) {
|
||||
capacity *= 2;
|
||||
buffer = realloc(buffer, capacity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user