aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaeseung Ha <ipknhama@gmail.com>2017-12-25 15:30:32 +0900
committerGitHub <noreply@github.com>2017-12-25 15:30:32 +0900
commit943dcba50736bbf6b193ef335bbb2e320472b827 (patch)
treef6833f98b58da5e7b9460c76fca823cee8fa8b9c
parent01cc7a3508013dda0a14d594a9f03f991cef812a (diff)
parent29824c84ede1a696851a6aae99eeae64f9651fc1 (diff)
downloadcrow-943dcba50736bbf6b193ef335bbb2e320472b827.tar.gz
crow-943dcba50736bbf6b193ef335bbb2e320472b827.zip
Merge pull request #259 from erikaldsund/fix_r_string_inconsistency
Fixed bug in r_string
-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 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);