diff options
author | Jaeseung Ha <ipknhama@gmail.com> | 2017-12-25 15:30:32 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-25 15:30:32 +0900 |
commit | 943dcba50736bbf6b193ef335bbb2e320472b827 (patch) | |
tree | f6833f98b58da5e7b9460c76fca823cee8fa8b9c /include | |
parent | 01cc7a3508013dda0a14d594a9f03f991cef812a (diff) | |
parent | 29824c84ede1a696851a6aae99eeae64f9651fc1 (diff) | |
download | crow-943dcba50736bbf6b193ef335bbb2e320472b827.tar.gz crow-943dcba50736bbf6b193ef335bbb2e320472b827.zip |
Merge pull request #259 from erikaldsund/fix_r_string_inconsistency
Fixed bug in r_string
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 1f28af5..85344fd 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); |