Fix mz_zip_time_t_to_dos_time() call (#236)

This commit is contained in:
Dialga 2022-02-07 04:44:04 +13:00 committed by GitHub
parent dce6952692
commit d7109a6368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -995,7 +995,9 @@ int zip_entry_open(struct zip_t *zip, const char *entryname) {
local_dir_header_ofs += num_alignment_padding_bytes;
zip->entry.m_time = time(NULL);
#ifndef MINIZ_NO_TIME
mz_zip_time_t_to_dos_time(zip->entry.m_time, &dos_time, &dos_date);
#endif
// ZIP64 header with NULL sizes (sizes will be in the data descriptor, just
// after file data)