Change strdup to _strdup

This commit is contained in:
Sijmen Schoon 2016-07-06 18:50:30 +02:00
parent edbca4907a
commit e882bfe736
1 changed files with 1 additions and 1 deletions

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;