summaryrefslogtreecommitdiffstats
path: root/src/file_zip.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-08-21 00:07:57 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-08-21 00:07:57 +0200
commit016d8181baab54b02674fa335886659101e9586a (patch)
tree62305cb76158795f816f6cbee00472ebb37d9eeb /src/file_zip.c
parent3eae46fa8f8c5014a98afd34764ec08ebad71389 (diff)
PhotoRec: minor optimisation for zip recovery
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index d712f11..a6e4690 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)