X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fjsmn%2Fexample%2Fmaptest.c;h=860c8f94f42494bad5989a090e7b7c6e7d6dfbe1;hb=5b03805ad89b6673dc01e7534ae4926bfc6d6d78;hp=ef9c4427a97a6d5a6371f1961e3463136178957d;hpb=822c13ee371d5766b371b4ab40b4f780998eeb02;p=16.git diff --git a/src/lib/jsmn/example/maptest.c b/src/lib/jsmn/example/maptest.c index ef9c4427..860c8f94 100644 --- a/src/lib/jsmn/example/maptest.c +++ b/src/lib/jsmn/example/maptest.c @@ -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) {