summaryrefslogtreecommitdiffstats
path: root/src/jplist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jplist.c')
-rw-r--r--src/jplist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jplist.c b/src/jplist.c
index fbc963e..889ce30 100644
--- a/src/jplist.c
+++ b/src/jplist.c
@@ -661,7 +661,7 @@ PLIST_API int plist_from_json(const char *json, uint32_t length, plist_t * plist
661 } 661 }
662 tokens = newtokens; 662 tokens = newtokens;
663 663
664 r = jsmn_parse(&parser, json, tokens, maxtoks); 664 r = jsmn_parse(&parser, json, length, tokens, maxtoks);
665 if (r == JSMN_ERROR_NOMEM) { 665 if (r == JSMN_ERROR_NOMEM) {
666 maxtoks+=16; 666 maxtoks+=16;
667 continue; 667 continue;