zip_seek.diff 473 B

1234567891011121314
  1. diff -r 34ebe997c5c0 archivers/zip.c
  2. --- a/archivers/zip.c Fri Jan 01 12:53:41 2016 -0500
  3. +++ b/archivers/zip.c Wed Jan 25 20:56:26 2017 +0300
  4. @@ -327,7 +327,8 @@
  5. return(0);
  6. inflateEnd(&finfo->stream);
  7. - memcpy(&finfo->stream, &str, sizeof (z_stream));
  8. + inflateCopy(&finfo->stream, &str);
  9. + inflateEnd(&str);
  10. finfo->uncompressed_position = finfo->compressed_position = 0;
  11. } /* if */