summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loolwsd/LOOLSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp
index d1d3d9e31..8b6da9332 100644
--- a/loolwsd/LOOLSession.cpp
+++ b/loolwsd/LOOLSession.cpp
@@ -234,7 +234,7 @@ bool MasterProcessSession::handleInput(const char *buffer, int length)
}
else if (tokens[0] == "commandvalues:")
{
- std::string stringMsg(buffer);
+ std::string stringMsg(buffer, length);
std::string stringJSON = stringMsg.substr(stringMsg.find_first_of("{"));
Parser parser;
Var result = parser.parse(stringJSON);