misc/libphysfs/archiver_zip.c
changeset 12217 ea891871f481
parent 10017 de822cd3df3a
child 12218 bb5522e88ab2
--- a/misc/libphysfs/archiver_zip.c	Mon Apr 10 14:34:32 2017 +0200
+++ b/misc/libphysfs/archiver_zip.c	Mon Apr 10 09:05:16 2017 -0400
@@ -312,7 +312,8 @@
                 return 0;
 
             inflateEnd(&finfo->stream);
-            memcpy(&finfo->stream, &str, sizeof (z_stream));
+            inflateCopy(&finfo->stream, &str);
+            inflateEnd(&str);
             finfo->uncompressed_position = finfo->compressed_position = 0;
         } /* if */