summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Burchell <viroteck@viroteck.net>2012-05-30 02:55:45 -0700
committerRobin Burchell <viroteck@viroteck.net>2012-05-30 02:55:45 -0700
commit90875afded8d80cc6c61d9f7804c1ba7a74e70a7 (patch)
tree16535fc37860a73c6d73e78a76c185532bb11c5b /src
parenta66b5a7b8f10a876970230cd087352d3bda5ef3e (diff)
parent9854c9346267fdc70660f347b3a66161ec133442 (diff)
Merge pull request #175 from attilamolnar/insp20+chopfix
[2.0] Fix last character being chopped off in included (exec)files
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));
}
}