diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/crow/json.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/crow/json.h b/include/crow/json.h index d8dbace..1aa303e 100644 --- a/include/crow/json.h +++ b/include/crow/json.h @@ -168,9 +168,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); |