From e9d2c94f93e87d4b61aef21bc5f7cd9416980c99 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Thu, 6 Feb 2014 13:28:35 -0800 Subject: [PATCH] Pass along the string length instead of just null-terminating --- jsonpull.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jsonpull.c b/jsonpull.c index ff80ce4..0dcee87 100644 --- a/jsonpull.c +++ b/jsonpull.c @@ -386,6 +386,7 @@ again: json_object *s = add_object(JSON_STRING, current, error); if (s != NULL) { s->string = val.buf; + s->length = val.n; } return s;