Skip to content

Commit

Permalink
Fix incompatible pointer error
Browse files Browse the repository at this point in the history
Fixes gdraheim#140

Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
  • Loading branch information
nvinson committed Sep 20, 2022
1 parent 6699e0f commit 38e4d5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zzip/mmapped.c
Expand Up @@ -661,7 +661,7 @@ zzip_disk_entry_fopen(ZZIP_DISK * disk, ZZIP_DISK_ENTRY * entry)

___ /* a ZIP64 extended block may follow. */
size_t csize = zzip_file_header_csize(header);
off_t offset = zzip_file_header_to_data(header);
size_t offset = zzip_file_header_sizeto_end(header);
if (csize == 0xFFFFu) {
struct zzip_extra_zip64* zip64 =
zzip_file_header_to_extras(header);
Expand All @@ -682,7 +682,7 @@ zzip_disk_entry_fopen(ZZIP_DISK * disk, ZZIP_DISK_ENTRY * entry)
file->zlib.zalloc = Z_NULL;
file->zlib.zfree = Z_NULL;
file->zlib.avail_in = csize;
file->zlib.next_in = offset;
file->zlib.next_in = (Bytef *)header + offset;
____;

DBG2("compressed size %i", (int) file->zlib.avail_in);
Expand Down

0 comments on commit 38e4d5f

Please sign in to comment.