summaryrefslogtreecommitdiff
path: root/json-c/json_tokener.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-c/json_tokener.c')
-rw-r--r--json-c/json_tokener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-c/json_tokener.c b/json-c/json_tokener.c
index d594569..336918a 100644
--- a/json-c/json_tokener.c
+++ b/json-c/json_tokener.c
@@ -318,7 +318,7 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
case json_tokener_state_string:
if(c == tok->quote_char) {
- current = json_object_new_string(tok->pb->buf);
+ current = json_object_new_string_len(tok->pb->buf, tok->pb->bpos);
saved_state = json_tokener_state_finish;
state = json_tokener_state_eatws;
} else if(c == '\\') {