summaryrefslogblamecommitdiff
path: root/packaging/patches/physfs/zip_seek.diff
blob: 0d9b17f5e33389c40485f1e93d59895bf0930ed7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                           
diff -r 34ebe997c5c0 archivers/zip.c
--- a/archivers/zip.c	Fri Jan 01 12:53:41 2016 -0500
+++ b/archivers/zip.c	Wed Jan 25 20:56:26 2017 +0300
@@ -327,7 +327,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 */