forked from rosebudai/OpenRCT2-Web
Change strdup to _strdup
This commit is contained in:
1 parent
edbca4907a
commit
e882bfe736
1 file changed
+1
-1
+1
-1
@@ -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