-
Frediano Ziglio authored
The pointer is not updated to the last byte used so using it to compute the bytes written into the buffer we ignore some bytes causing some image corruptions. Note that also free_in_buffer is not updated to last written byte. When buf_empty_output_buffer is called the buffer is full so use the size of it instead of relying on next_output_byte or free_in_buffer. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
5748c6c5