Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-18 11:41:21 +0000
committerStijn Buys <ingar@osirion.org>2008-05-18 11:41:21 +0000
commit9ce3a1e6aa40713db5dd11aba3595fb0ad75cc60 (patch)
treec076f8814be2ab2051de1ed13e948e85dd81c578 /src/sys
parent4a2bad92171ff8a9a248599f47087cfe39e93653 (diff)
win32 build updates
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);