diff options
author | Robin Burchell <viroteck@viroteck.net> | 2012-05-30 02:55:45 -0700 |
---|---|---|
committer | Robin Burchell <viroteck@viroteck.net> | 2012-05-30 02:55:45 -0700 |
commit | 90875afded8d80cc6c61d9f7804c1ba7a74e70a7 (patch) | |
tree | 16535fc37860a73c6d73e78a76c185532bb11c5b | |
parent | a66b5a7b8f10a876970230cd087352d3bda5ef3e (diff) | |
parent | 9854c9346267fdc70660f347b3a66161ec133442 (diff) |
Merge pull request #175 from attilamolnar/insp20+chopfix
[2.0] Fix last character being chopped off in included (exec)files
-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)); } } |