Skip to content

Commit

Permalink
Use correct version needed to extract for BZIP2. #763
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Feb 17, 2024
1 parent 32f91ad commit 4bd8ebc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mz_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,10 @@ static int32_t mz_zip_entry_write_header(void *stream, uint8_t local, mz_zip_fil
version_needed = 20;
if (zip64)
version_needed = 45;
#ifdef HAVE_BZIP2
if (file_info->compression_method == MZ_COMPRESS_METHOD_BZIP2)
version_needed = 46;
#endif
#ifdef HAVE_WZAES
if ((file_info->flag & MZ_ZIP_FLAG_ENCRYPTED) && (file_info->aes_version))
version_needed = 51;
Expand Down

0 comments on commit 4bd8ebc

Please sign in to comment.