Added
Link Here
|
1 |
--- zzip/mmapped.c.orig 2021-01-04 23:05:08 UTC |
2 |
+++ zzip/mmapped.c |
3 |
@@ -661,16 +661,16 @@ zzip_disk_entry_fopen(ZZIP_DISK * disk, ZZIP_DISK_ENTR |
4 |
|
5 |
___ /* a ZIP64 extended block may follow. */ |
6 |
size_t csize = zzip_file_header_csize(header); |
7 |
- off_t offset = zzip_file_header_to_data(header); |
8 |
+ off_t offset = (off_t) zzip_file_header_to_data(header); |
9 |
if (csize == 0xFFFFu) { |
10 |
- struct zzip_extra_zip64* zip64 = |
11 |
+ struct zzip_extra_zip64* zip64 = (struct zzip_extra_zip64 *) |
12 |
zzip_file_header_to_extras(header); |
13 |
if (ZZIP_EXTRA_ZIP64_CHECK(zip64)) { |
14 |
csize = zzip_extra_zip64_csize(zip64); |
15 |
} |
16 |
} |
17 |
if (offset == 0xFFFFu) { |
18 |
- struct zzip_extra_zip64* zip64 = |
19 |
+ struct zzip_extra_zip64* zip64 = (struct zzip_extra_zip64 *) |
20 |
zzip_file_header_to_extras(header); |
21 |
if (ZZIP_EXTRA_ZIP64_CHECK(zip64)) { |
22 |
offset = zzip_extra_zip64_offset(zip64); |
23 |
@@ -682,7 +682,7 @@ zzip_disk_entry_fopen(ZZIP_DISK * disk, ZZIP_DISK_ENTR |
24 |
file->zlib.zalloc = Z_NULL; |
25 |
file->zlib.zfree = Z_NULL; |
26 |
file->zlib.avail_in = csize; |
27 |
- file->zlib.next_in = offset; |
28 |
+ file->zlib.next_in = (Bytef *) offset; |
29 |
____; |
30 |
|
31 |
DBG2("compressed size %i", (int) file->zlib.avail_in); |