]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/jsmn/example/maptest.c
modified: src/lib/jsmn/example/MAPTEST.EXE
[16.git] / src / lib / jsmn / example / maptest.c
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)
        {