From 016d8181baab54b02674fa335886659101e9586a Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Thu, 21 Aug 2008 00:07:57 +0200 Subject: [PATCH] PhotoRec: minor optimisation for zip recovery --- src/file_zip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_zip.c b/src/file_zip.c index d712f117..a6e46903 100644 --- a/src/file_zip.c +++ b/src/file_zip.c @@ -105,7 +105,7 @@ static int64_t file_get_pos(FILE *f, const void* needle, const unsigned int size { int count = 0; unsigned int left; - unsigned int read_size= fread(buffer, 1, 4096, f); + const unsigned int read_size= fread(buffer, 1, 4096, f); left = read_size; while (left>=size)