summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd_io.cpp4
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';