From 3636f7a323c106b4bc832b94eb3dc59d81210d79 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 29 Oct 1999 00:46:20 +0000 Subject: [PATCH] (code_convert_region): Update `dst' correctly. --- src/ChangeLog | 4 ++++ src/coding.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 350307c3e6..234d50b4dd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +1999-10-29 Kenichi Handa + + * coding.c (code_convert_region): Update `dst' correctly. + 1999-10-28 Richard M. Stallman * regex.c (POP_FAILURE_POINT): Use failure_id.integer diff --git a/src/coding.c b/src/coding.c index 1e75be5ab6..c5dfd2102d 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4496,7 +4496,7 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) inserted_byte += coding->produced; len_byte -= coding->consumed; src += coding->consumed; - dst += inserted_byte; + dst += coding->produced; if (result == CODING_FINISH_NORMAL) { -- 2.20.1