]> thyrsus.com Git - microjson.git/commitdiff
More reynch with microjson. All regression tests pass.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 28 Sep 2014 04:36:30 +0000 (00:36 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 28 Sep 2014 04:36:30 +0000 (00:36 -0400)
mjson.c

diff --git a/mjson.c b/mjson.c
index 68d04abe4da698a4bf0ddb18e8da70f3b41e77d3..515770766411c79f6f934e2dc6c6f0ba6569b10c 100644 (file)
--- a/mjson.c
+++ b/mjson.c
@@ -721,6 +721,8 @@ int json_read_array(const char *cp, const struct json_array_t *arr,
        }
     }
     json_debug_trace((1, "Too many elements in array.\n"));
+    if (end != NULL)
+       *end = cp;
     return JSON_ERR_SUBTOOLONG;
   breakout:
     if (arr->count != NULL)