# HG changeset patch # User sheepluva # Date 1504637200 -7200 # Node ID e18cfe90e4e28f6748049b745ae5f13caa934bc4 # Parent 30da743f118b066a6880b93915700681b5ddf3e8 fix physfs using inflateCopy() (not part of miniz) diff -r 30da743f118b -r e18cfe90e4e2 misc/libphysfs/archiver_zip.c --- 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)