about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-10-28 02:18:09 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-10-28 02:18:09 +0000
commit8e1076a387acbac4913d4aef9dd4e0ae5c925388 (patch)
tree3cd72d4a89a66f3197824fc8027d840ada696dce /converter/other
parent9c4f5b0e8d380cd2d908534c18bc9d9316bcb056 (diff)
downloadnetpbm-mirror-8e1076a387acbac4913d4aef9dd4e0ae5c925388.tar.gz
netpbm-mirror-8e1076a387acbac4913d4aef9dd4e0ae5c925388.tar.xz
netpbm-mirror-8e1076a387acbac4913d4aef9dd4e0ae5c925388.zip
Flush the output buffer reliably, so Pnmtops doesn't truncate stuff with -flate
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1351 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r--converter/other/bmepsoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/bmepsoe.c b/converter/other/bmepsoe.c
index 1df687f9..02bf39aa 100644
--- a/converter/other/bmepsoe.c
+++ b/converter/other/bmepsoe.c
@@ -227,7 +227,7 @@ do_flate_flush(Output_Encoder * const oP,
   
     if (iptr && optr && is && os) {
         is = oP->fl_i_used;
-        if (is) {
+        if (is || final) {
             oP->flate_stream.next_in = iptr;
             oP->flate_stream.avail_in = is;
             if (final) {