From: brain Date: Sun, 29 May 2005 16:02:04 +0000 (+0000) Subject: Fix for backslashes in win32 paths (converted to forward slashes in config reader) X-Git-Tag: v2.0.23~10142 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=d9b0571f38215a4cd3ac176c453d5a8729625abb;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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';