From 3c9e82333bbccc1259bf3505407c427998d0fca3 Mon Sep 17 00:00:00 2001 From: Thomas Edvalson Date: Sun, 6 Dec 2015 19:45:45 -0500 Subject: [PATCH] Fix mkdir --- source/util/Common.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/util/Common.cpp b/source/util/Common.cpp index bee3030..649e782 100644 --- a/source/util/Common.cpp +++ b/source/util/Common.cpp @@ -10,6 +10,7 @@ #include #endif +#include #include #include #include @@ -134,7 +135,7 @@ namespace Common { #ifdef _WIN32 int ret = _mkdir(mname); #else - int ret = mkdir(p, 0777); + int ret = mkdir(mname, 0777); #endif if (ret >0 && ret != EEXIST) { -- 2.39.5