diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-24 01:44:29 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-24 01:44:29 +0000 |
commit | c8026bc2d73344e1df526f0a80694046efa4b22a (patch) | |
tree | 539e3bca92733aeff631fad70ecc6722550ef0b0 /src/configreader.cpp | |
parent | 58895f9b1daa1e13927462d046a36dec853a40e0 (diff) |
Move configuration filename specification to start script, to reduce hardcoded paths in executable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11759 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 5e1dd6969..159ca598f 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1969,9 +1969,9 @@ bool ServerConfig::FileExists(const char* file) } } -char* ServerConfig::CleanFilename(char* name) +const char* ServerConfig::CleanFilename(const char* name) { - char* p = name + strlen(name); + const char* p = name + strlen(name); while ((p != name) && (*p != '/') && (*p != '\\')) p--; return (p != name ? ++p : p); } |