Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/sys.cc b/src/sys/sys.cc
index 4cb820d..36a40a0 100644
--- a/src/sys/sys.cc
+++ b/src/sys/sys.cc
@@ -29,10 +29,10 @@ namespace sys {
void mkdir(std::string const &path)
{
#ifdef _WIN32
- string p(path);
- for (size_t i = 0; i < p.lenght(); i++)
+ std::string p(path);
+ for (size_t i = 0; i < p.size(); i++)
if (p[i] == '/') p[i] = '\\';
- ::mkdir(p.cstr());
+ mkdir(p.c_str());
#else
::mkdir(path.c_str(), 0777);