diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 16:02:04 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 16:02:04 +0000 |
commit | d9b0571f38215a4cd3ac176c453d5a8729625abb (patch) | |
tree | 3165a888ddacc55414352cd368c0cb860b8b82b8 | |
parent | fec34388a35a01a486eedfeab0a8d3aead3ebb84 (diff) |
Fix for backslashes in win32 paths (converted to forward slashes in config reader)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1555 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd_io.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index a01048e85..c3f725c14 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -327,8 +327,10 @@ bool LoadConf(const char* filename, std::stringstream *target, std::stringstream char confpath[10240],newconf[10240]; // include file directive buf += 15; // advance to filename - for (int j = 0; j < strlen(buffer); j++) + for (int j = 0; j < strlen(buf); j++) { + if (buf[j] == '\\') + buf[j] = '/'; if (buf[j] == '"') { buf[j] = '\0'; |