Skip to content
Snippets Groups Projects
Commit 042cf8e6 authored by npzacs's avatar npzacs
Browse files

Fix creating directory path in Windows

stat("C:") seems to fail.
parent 61460ba3
No related branches found
Tags 0.6.0
No related merge requests found
......@@ -57,6 +57,9 @@ static int _mkpath(const char *path)
char *dir = str_printf("%s", path);
char *end = dir;
#ifdef _WIN32
end += 2; /* skip drive */
#endif
while (*end == DIR_SEP_CHAR)
end++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment