diff options
| author | 2007-05-20 12:38:23 +0000 | |
|---|---|---|
| committer | 2007-05-20 12:38:23 +0000 | |
| commit | c3913b1f2fc192184baf5dbdbf12278b10dd1345 (patch) | |
| tree | 5f51037622a255c8cb47670555cbe01950609cbc /src/configreader.cpp | |
| parent | - Fix a small warning thrown by cl about unused local. (diff) | |
| download | inspircd++-c3913b1f2fc192184baf5dbdbf12278b10dd1345.tar.gz inspircd++-c3913b1f2fc192184baf5dbdbf12278b10dd1345.tar.bz2 inspircd++-c3913b1f2fc192184baf5dbdbf12278b10dd1345.zip | |
Windows path seperator is \, this was assuming /. Fixed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7062 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 392c7eb29..4d4dccb08 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1606,7 +1606,7 @@ std::string ServerConfig::GetFullProgDir(char** argv, int argc) // we just want the dir while (*work) { - if (work[p] == '/') + if ((work[p] == '/') || (work[p] == '\\')) { work[p] = '\0'; break; |
