fread(void *ptr, size_t size, size_t n, FILE *stream);
の3つ目の引数は何か意味があるのですか?
sizeにsize*nを入れればいいと思うのですが?