summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-05-30 00:43:45 +0200
committerattilamolnar <attilamolnar@hush.com>2012-05-30 00:43:45 +0200
commit9854c9346267fdc70660f347b3a66161ec133442 (patch)
treea95f01a50b8006293f3a10f9cdd139370d44baf0 /src
parent7ca4e7f0450b376902b4987190e06c2a719a89c4 (diff)
Fix last character being chopped off in included (exec)files (e.g. motd and rules)
Diffstat (limited to 'src')
-rw-r--r--src/configparser.cpp2
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));
}
}