mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Change strdup to _strdup
This commit is contained in:
@@ -71,7 +71,7 @@ utf8 *path_get_directory(const utf8 *path)
|
||||
if (filename == NULL)
|
||||
return NULL;
|
||||
|
||||
char *directory = strdup(path);
|
||||
char *directory = _strdup(path);
|
||||
safe_strtrunc(directory, strlen(path) - strlen(filename) + 2);
|
||||
|
||||
return directory;
|
||||
|
||||
Reference in New Issue
Block a user