Commit 042cf8e6 authored by npzacs's avatar npzacs
Browse files

Fix creating directory path in Windows

stat("C:") seems to fail.
parent 61460ba3
......@@ -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++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment