changeset 89461:108e326323e3

(Fcall_process): Handle carryover correctly.
author Kenichi Handa <handa@m17n.org>
date Thu, 05 Jun 2003 12:31:46 +0000
parents 57ba655366c4
children 4e359ebf3984
files src/callproc.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Thu Jun 05 07:17:10 2003 +0000
+++ b/src/callproc.c	Thu Jun 05 12:31:46 2003 +0000
@@ -797,13 +797,12 @@
 		
 		TEMP_SET_PT_BOTH (PT + process_coding.produced_char,
 				  PT_BYTE + process_coding.produced);
-		nread -= process_coding.consumed;
-		carryover = nread;
+		carryover = process_coding.carryover_bytes;
 		if (carryover > 0)
 		  /* As CARRYOVER should not be that large, we had
 		     better avoid overhead of bcopy.  */
-		  BCOPY_SHORT (bufptr + process_coding.consumed, bufptr,
-			       carryover);
+		  BCOPY_SHORT (process_coding.carryover, bufptr,
+			       process_coding.carryover_bytes);
 	      }
 	  }