]> 4ch.mooo.com Git - 16.git/commitdiff
modified: src/lib/jsmn/example/MAPTEST.EXE
authorsparky4 <sparky4@cock.li>
Fri, 20 Mar 2015 15:49:46 +0000 (10:49 -0500)
committersparky4 <sparky4@cock.li>
Fri, 20 Mar 2015 15:49:46 +0000 (10:49 -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 51e24217e9d8fdb3c9ac6a4538b1ac97b338a03f..12a0c0c95895deef2c717e18c00268b97ddd647b 100644 (file)
Binary files a/src/lib/jsmn/example/MAPTEST.EXE and b/src/lib/jsmn/example/MAPTEST.EXE differ
index 9e813a7c3846a46e9f560b2f9c3f3741d9a40ce0..5f954f9a205c691527c4d39191cdd7e8089ee1fa 100644 (file)
Binary files a/src/lib/jsmn/example/maptest and b/src/lib/jsmn/example/maptest differ
index ef9c4427a97a6d5a6371f1961e3463136178957d..860c8f94f42494bad5989a090e7b7c6e7d6dfbe1 100644 (file)
@@ -40,7 +40,7 @@ int main() {
        FILE *fh = fopen("../../../../data/test.map", "r");
        jsmntok_t t[1536]; /* We expect no more than 128 tokens */
        char JSON_S[6144];
-       memset(JSON_S, 0, filesize(fh));
+       memset(JSON_S, 0, sizeof(JSON_S));
 
        if(fh != NULL)
        {