diff --git a/imageInput.c b/imageInput.c index e17d387..574647b 100644 --- a/imageInput.c +++ b/imageInput.c @@ -89,7 +89,7 @@ unsigned int readStatusInfo(FILE *source, char *const headerString, unsigned int unsigned int bytesToRead = 0; fread(headerString, sizeof("__info2_image_file_format__\0"), amountToRead, source); - fread(imageCount, 4, 1, source); + fread(imageCount, sizeof(int), 1, source); fread(imageWidth, sizeof(int), amountToRead, source); fread(imageHeight, sizeof(int), amountToRead, source);