From d7109a63686d8a925fb150087137e54602e575ef Mon Sep 17 00:00:00 2001 From: Dialga Date: Mon, 7 Feb 2022 04:44:04 +1300 Subject: [PATCH] Fix mz_zip_time_t_to_dos_time() call (#236) --- src/zip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zip.c b/src/zip.c index d495049..4540b1b 100644 --- a/src/zip.c +++ b/src/zip.c @@ -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)