From d9b0571f38215a4cd3ac176c453d5a8729625abb Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 29 May 2005 16:02:04 +0000 Subject: [PATCH] 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 --- src/inspircd_io.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'; -- 2.39.2