]> 4ch.mooo.com Git - 16.git/commitdiff
modified: src/lib/jsmn/example/MAPTEST.EXE
authorsparky4 <sparky4@cock.li>
Fri, 20 Mar 2015 15:37:55 +0000 (10:37 -0500)
committersparky4 <sparky4@cock.li>
Fri, 20 Mar 2015 15:37:55 +0000 (10:37 -0500)
modified:   src/lib/jsmn/example/maptest
modified:   src/lib/jsmn/example/maptest.c

src/lib/jsmn/example/MAPTEST.EXE
src/lib/jsmn/example/maptest
src/lib/jsmn/example/maptest.c

index 1c7aa02a9ddfb780e848a2d79915be47f7f66359..51e24217e9d8fdb3c9ac6a4538b1ac97b338a03f 100644 (file)
Binary files a/src/lib/jsmn/example/MAPTEST.EXE and b/src/lib/jsmn/example/MAPTEST.EXE differ
index f9466d24e5b74feb1fb3851d8d488621f5e3a4df..9e813a7c3846a46e9f560b2f9c3f3741d9a40ce0 100644 (file)
Binary files a/src/lib/jsmn/example/maptest and b/src/lib/jsmn/example/maptest differ
index cdf43779a4c6100b770ca7fcc888afe61286cb9c..ef9c4427a97a6d5a6371f1961e3463136178957d 100644 (file)
@@ -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)
        {