1
0
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:
Sijmen Schoon
2016-07-06 18:50:30 +02:00
parent edbca4907a
commit e882bfe736

View File

@@ -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;