From: sparky4 Date: Sun, 22 Mar 2015 17:19:58 +0000 (-0500) Subject: modified: src/lib/jsmn/example/MAPTEST.EXE X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=87dad2ac1e2ce4f81d2750e52fa6776e6d86e425;p=16.git modified: src/lib/jsmn/example/MAPTEST.EXE modified: src/lib/jsmn/example/jsondump.c modified: src/lib/jsmn/example/maptest.c --- diff --git a/src/lib/jsmn/example/MAPTEST.EXE b/src/lib/jsmn/example/MAPTEST.EXE index 884e5f67..85c36279 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/jsondump.c b/src/lib/jsmn/example/jsondump.c index e0f99858..04d9f5ae 100644 --- a/src/lib/jsmn/example/jsondump.c +++ b/src/lib/jsmn/example/jsondump.c @@ -50,7 +50,7 @@ int main() { int eof_expected = 0; char *js = NULL; size_t jslen = 0; - char buf[BUFSIZ-256]; + char buf[BUFSIZ]; jsmn_parser p; jsmntok_t *tok; diff --git a/src/lib/jsmn/example/maptest.c b/src/lib/jsmn/example/maptest.c index 942402fa..5ad01707 100644 --- a/src/lib/jsmn/example/maptest.c +++ b/src/lib/jsmn/example/maptest.c @@ -13,7 +13,7 @@ "\"groups\": [\"users\", \"wheel\", \"audio\", \"video\"]}";*/ char *JSON_STRING; -char JSON_S[6144]; +char JSON_S[8192]; long int filesize(FILE *fp) { @@ -39,7 +39,7 @@ int main() { int r; jsmn_parser p; FILE *fh = fopen("../../../../data/test.map", "r"); - jsmntok_t t[1536]; /* We expect no more than 128 tokens */ + jsmntok_t t[2048]; /* We expect no more than 128 tokens */ //memset(JSON_S, 0, sizeof(JSON_S)); if(fh != NULL) @@ -53,7 +53,7 @@ int main() { jsmn_init(&p); r = jsmn_parse(&p, JSON_STRING, filesize(fh), t, sizeof(t)/sizeof(t[0])); fclose(fh); fh = NULL; - //printf("%s", JSON_STRING); + printf("%s", JSON_STRING); if (r < 0) { printf("Failed to parse JSON: %d\n", r); return 1;