]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix for backslashes in win32 paths (converted to forward slashes in config reader)
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 29 May 2005 16:02:04 +0000 (16:02 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 29 May 2005 16:02:04 +0000 (16:02 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1555 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd_io.cpp

index a01048e8548f8c6cab7ac2e936256eec19695b82..c3f725c14a1190a3c6e94aa9355f2bdc7f8b5205 100644 (file)
@@ -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';