changeset 32896:3d8fb019040f

(decode_coding): Fix previous change (check also CODING_MODE_LAST_BLOCK).
author Kenichi Handa <handa@m17n.org>
date Thu, 26 Oct 2000 01:22:29 +0000
parents 08c48b99b70c
children 99da951a3b7f
files src/coding.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Oct 26 01:22:14 2000 +0000
+++ b/src/coding.c	Thu Oct 26 01:22:29 2000 +0000
@@ -4223,6 +4223,7 @@
     }
 
   if (coding->result == CODING_FINISH_INSUFFICIENT_SRC
+      && coding->mode & CODING_MODE_LAST_BLOCK
       && coding->consumed == src_bytes)
     coding->result = CODING_FINISH_NORMAL;