From e882bfe7367c036d98e46efb1d383df06b5417b8 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Wed, 6 Jul 2016 18:50:30 +0200 Subject: [PATCH] Change strdup to _strdup --- src/util/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util.c b/src/util/util.c index 94abb55782..bb8d08f6fe 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -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;