diff options
| author | 2012-05-30 00:43:45 +0200 | |
|---|---|---|
| committer | 2012-05-30 00:43:45 +0200 | |
| commit | 9854c9346267fdc70660f347b3a66161ec133442 (patch) | |
| tree | a95f01a50b8006293f3a10f9cdd139370d44baf0 /src/configparser.cpp | |
| parent | Merge pull request #156 from attilamolnar/insp20+statszfix (diff) | |
Fix last character being chopped off in included (exec)files (e.g. motd and rules)
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)); } } |
