mirror of https://github.com/OpenRCT2/OpenRCT2.git
Change strdup to _strdup
This commit is contained in:
parent
edbca4907a
commit
e882bfe736
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue