From 9854c9346267fdc70660f347b3a66161ec133442 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 30 May 2012 00:43:45 +0200 Subject: Fix last character being chopped off in included (exec)files (e.g. motd and rules) --- src/configparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configparser.cpp') 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)); } } -- cgit v1.2.3