Blob Blame History Raw
diff -up physfs-2.0.3/archivers/zip.c.zlibfix physfs-2.0.3/archivers/zip.c
--- physfs-2.0.3/archivers/zip.c.zlibfix	2017-02-13 11:27:37.271840684 -0500
+++ physfs-2.0.3/archivers/zip.c	2017-02-13 11:28:30.853501297 -0500
@@ -327,7 +327,8 @@ static int ZIP_seek(fvoid *opaque, PHYSF
                 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 */