(decode_coding): Fix previous change (check also
authorKenichi Handa <handa@m17n.org>
Thu, 26 Oct 2000 01:22:29 +0000 (01:22 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 26 Oct 2000 01:22:29 +0000 (01:22 +0000)
CODING_MODE_LAST_BLOCK).

src/coding.c

index 3cef86e..f44efa9 100644 (file)
@@ -4223,6 +4223,7 @@ decode_coding (coding, source, destination, src_bytes, dst_bytes)
     }
 
   if (coding->result == CODING_FINISH_INSUFFICIENT_SRC
+      && coding->mode & CODING_MODE_LAST_BLOCK
       && coding->consumed == src_bytes)
     coding->result = CODING_FINISH_NORMAL;