]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/jsmn/example/maptest.c
wwww map testing~
[16.git] / src / lib / jsmn / example / maptest.c
index d951e64b2bda1bc55ce10375b912d430dd6cf776..1a3416cc31f9854e6731f4d0a4b66c7203e690a1 100644 (file)
@@ -36,8 +36,8 @@ int main() {
        int r;
        size_t z;
        jsmn_parser p;
-       jsmntok_t t[2048]; /* We expect no more than 128 tokens */
-       FILE *fh = fopen("../../../../data/test.map", "r");
+       jsmntok_t t[128]; /* We expect no more than 128 tokens */
+       FILE *fh = fopen("../../../../data/test0.map", "r");
        char *json_string = malloc(filesize(fh));
        //memset(json_string, 0, sizeof(*json_string));
        memset(&p, 0, sizeof(p));