diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-18 11:41:21 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-18 11:41:21 +0000 |
commit | 9ce3a1e6aa40713db5dd11aba3595fb0ad75cc60 (patch) | |
tree | c076f8814be2ab2051de1ed13e948e85dd81c578 /src/sys | |
parent | 4a2bad92171ff8a9a248599f47087cfe39e93653 (diff) |
win32 build updates
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/sys.cc | 6 |
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); |