]> Chaos Git - console/XDS.git/commitdiff
Fix mkdir
authorThomas Edvalson <machin3@gmail.com>
Mon, 7 Dec 2015 00:45:45 +0000 (19:45 -0500)
committerThomas Edvalson <machin3@gmail.com>
Mon, 7 Dec 2015 00:45:45 +0000 (19:45 -0500)
source/util/Common.cpp

index bee30302d84afca21b0c9b2cde73e27965e169f1..649e782bd520901beef1d33979e2dc280a3f060d 100644 (file)
@@ -10,6 +10,7 @@
 #include <iconv.h>
 #endif
 
+#include <sys/stat.h>
 #include <stdint.h>
 #include <stdbool.h>
 #include <string.h>
@@ -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)
                                {