diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-05-30 00:43:45 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-05-30 00:43:45 +0200 |
commit | 9854c9346267fdc70660f347b3a66161ec133442 (patch) | |
tree | a95f01a50b8006293f3a10f9cdd139370d44baf0 | |
parent | 7ca4e7f0450b376902b4987190e06c2a719a89c4 (diff) |
Fix last character being chopped off in included (exec)files (e.g. motd and rules)
-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)); } } |