diff options
| author | 2012-05-30 02:55:45 -0700 | |
|---|---|---|
| committer | 2012-05-30 02:55:45 -0700 | |
| commit | 90875afded8d80cc6c61d9f7804c1ba7a74e70a7 (patch) | |
| tree | 16535fc37860a73c6d73e78a76c185532bb11c5b /src/configparser.cpp | |
| parent | Merge pull request #173 from Robby-/insp20-moddesc (diff) | |
| parent | Fix last character being chopped off in included (exec)files (e.g. motd and r... (diff) | |
| download | inspircd++-90875afded8d80cc6c61d9f7804c1ba7a74e70a7.tar.gz inspircd++-90875afded8d80cc6c61d9f7804c1ba7a74e70a7.tar.bz2 inspircd++-90875afded8d80cc6c61d9f7804c1ba7a74e70a7.zip | |
Merge pull request #175 from attilamolnar/insp20+chopfix
[2.0] Fix last character being chopped off in included (exec)files
Diffstat (limited to 'src/configparser.cpp')
| -rw-r--r-- | src/configparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp index 056ed54a4..51d67b4f5 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -319,7 +319,7 @@ void ParseStack::DoReadFile(const std::string& key, const std::string& name, int { int len = strlen(linebuf); if (len) - cache.push_back(std::string(linebuf, len - 1)); + cache.push_back(std::string(linebuf, len)); } } |
