mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Guard array access in platform_open_directory_browser
This commit is contained in:
@@ -490,6 +490,7 @@ utf8 *platform_open_directory_browser(const utf8 *title) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
assert(size - 1 < countof(result));
|
||||
result[size-1] = '\0';
|
||||
|
||||
return_value = _strdup(result);
|
||||
|
||||
Reference in New Issue
Block a user