diff --git a/include/crow/json.h b/include/crow/json.h index 1f28af5dd..85344fd8b 100644 --- a/include/crow/json.h +++ b/include/crow/json.h @@ -175,9 +175,10 @@ namespace crow return os; } private: - void force(char* s, uint32_t /*length*/) + void force(char* s, uint32_t length) { s_ = s; + e_ = s_ + length; owned_ = 1; } friend rvalue crow::json::load(const char* data, size_t size);