misc/libphysfs/archiver_zip.c
changeset 12452 e18cfe90e4e2
parent 12451 30da743f118b
child 13393 ae5d6448c5be
--- a/misc/libphysfs/archiver_zip.c	Sun Sep 03 19:09:30 2017 +0200
+++ b/misc/libphysfs/archiver_zip.c	Tue Sep 05 20:46:40 2017 +0200
@@ -421,8 +421,7 @@
                 return 0;
 
             inflateEnd(&finfo->stream);
-            inflateCopy(&finfo->stream, &str);
-            inflateEnd(&str);
+            memcpy(&finfo->stream, &str, sizeof (z_stream));
             finfo->uncompressed_position = finfo->compressed_position = 0;
 
             if (encrypted)