From: sparky4 Date: Fri, 20 Mar 2015 15:37:55 +0000 (-0500) Subject: modified: src/lib/jsmn/example/MAPTEST.EXE X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=822c13ee371d5766b371b4ab40b4f780998eeb02;p=16.git modified: src/lib/jsmn/example/MAPTEST.EXE modified: src/lib/jsmn/example/maptest modified: src/lib/jsmn/example/maptest.c --- diff --git a/src/lib/jsmn/example/MAPTEST.EXE b/src/lib/jsmn/example/MAPTEST.EXE index 1c7aa02a..51e24217 100644 Binary files a/src/lib/jsmn/example/MAPTEST.EXE and b/src/lib/jsmn/example/MAPTEST.EXE differ diff --git a/src/lib/jsmn/example/maptest b/src/lib/jsmn/example/maptest index f9466d24..9e813a7c 100644 Binary files a/src/lib/jsmn/example/maptest and b/src/lib/jsmn/example/maptest differ diff --git a/src/lib/jsmn/example/maptest.c b/src/lib/jsmn/example/maptest.c index cdf43779..ef9c4427 100644 --- a/src/lib/jsmn/example/maptest.c +++ b/src/lib/jsmn/example/maptest.c @@ -38,9 +38,9 @@ int main() { int r; jsmn_parser p; FILE *fh = fopen("../../../../data/test.map", "r"); - jsmntok_t t[2048]; /* We expect no more than 128 tokens */ - char JSON_S[8192]; - memset(JSON_S, 0, sizeof JSON_S); + jsmntok_t t[1536]; /* We expect no more than 128 tokens */ + char JSON_S[6144]; + memset(JSON_S, 0, filesize(fh)); if(fh != NULL) {