summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
362c024)
avail_out has the remaining bytes in the buffer, not the number of bytes
output, which is found on total_out.
- *olen = zstrm.avail_out + 6;
+ *olen = zstrm.total_out + 6;
- (*out)[1] = (zstrm.avail_out >> 8);
- (*out)[2] = (zstrm.avail_out & 0xff);
+ (*out)[1] = (zstrm.total_out >> 8);
+ (*out)[2] = (zstrm.total_out & 0xff);
(*out)[3] = (len >> 8);
(*out)[4] = (len & 0xff);
(*out)[5] = 0x1;
(*out)[3] = (len >> 8);
(*out)[4] = (len & 0xff);
(*out)[5] = 0x1;