We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6062f9b commit 9006194Copy full SHA for 9006194
src/lib_json/json_reader.cpp
@@ -103,7 +103,7 @@ Reader::Reader(const Features& features)
103
104
bool
105
Reader::parse(const std::string& document, Value& root, bool collectComments) {
106
- JSONCPP_STRING documentCopy(document.data(), document.data() + document.capacity());
+ JSONCPP_STRING documentCopy(document.data(), document.data() + document.length());
107
std::swap(documentCopy, document_);
108
const char* begin = document_.c_str();
109
const char* end = begin + document_.length();
0 commit comments