[Zlib-devel] Tiny modification on unzip.c
Gilles Vollant
info at winimage.com
Sun Aug 20 06:48:54 EDT 2006
I've a small modification on unzip.c
download the fixed file at http://gvollant.free.fr/unzip.c.new or apply this
diff:
*** unzip.c Tue Jul 12 20:08:40 2005
--- unzip.c.new Sun Aug 20 12:42:38 2006
***************
*** 1163,1168 ****
--- 1163,1170 ----
s->pfile_in_zip_read = pfile_in_zip_read_info;
+ s->encrypted = 0;
+
# ifndef NOUNCRYPT
if (password != NULL)
{
Currently, if two files are encrypted..
it will think the third file is encrypted even if it is not
because the encrypted variable is not reset to 0
everytime you can unzOpenCurrentFile3
Tis bug is sumbited by Nathan Moinvaziri at
http://www.nathanm.com/2006/08/13/minizip_bug.html
More information about the Zlib-devel
mailing list