aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crow/json.h')
-rw-r--r--include/crow/json.h3
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);