# HG changeset patch # User Pascal Bellard # Date 1588794946 0 # Node ID 2ac876d0d1510e7200974a95f429519fcf3787c7 # Parent c6796c6304f6f03c535b87e803592380fbc2a10a qemu/cloop: tiny fix diff -r c6796c6304f6 -r 2ac876d0d151 qemu/stuff/cloop.u --- a/qemu/stuff/cloop.u Wed May 06 09:10:52 2020 +0000 +++ b/qemu/stuff/cloop.u Wed May 06 19:55:46 2020 +0000 @@ -185,7 +185,7 @@ + size_t src_pos; + size_t dest_pos; + uint64_t memlimit; -+ uint32_t outlen = s->zstream.total_out; ++ uint32_t outlen = s->zstream.avail_out; + + switch (flag) { + case CLOOP_COMPRESSOR_ZLIB: