changeset 90336:f0338dbf2276

(decode_coding): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Thu, 02 Mar 2006 06:54:30 +0000
parents aa91709ce7ed
children 56cabe957a0c
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Mar 02 06:39:08 2006 +0000
+++ b/src/coding.c	Thu Mar 02 06:54:30 2006 +0000
@@ -6185,7 +6185,8 @@
 	  = coding->charbuf[coding->charbuf_used - carryover + i];
     }
   while (coding->consumed < coding->src_bytes
-	 && coding->result != CODING_RESULT_INSUFFICIENT_MEM);
+	 && (coding->result == CODING_RESULT_SUCCESS
+	     || coding->result == CODING_RESULT_INVALID_SRC));
 
   if (carryover > 0)
     {