Permalink
Browse files

coding.c (produce_chars): Fix updating of src_end (Bug#10701).

  • Loading branch information...
1 parent a326ac4 commit 77a56e3d815991289bbae393af4821ddaf0b5b7a Kenichi Handa committed Feb 8, 2012
Showing with 7 additions and 3 deletions.
  1. +4 −0 src/ChangeLog
  2. +3 −3 src/coding.c
View
@@ -1,3 +1,7 @@
+2012-02-08 Kenichi Handa <handa@m17n.org>
+
+ * coding.c (produce_chars): Fix updating of src_end (Bug#10701).
+
2012-01-25 Chong Yidong <cyd@gnu.org>
* Version 23.4 released.
View
@@ -7038,7 +7038,7 @@ produce_chars (coding, translation_table, last_block)
dst_end = coding->destination + coding->dst_bytes;
coding_set_source (coding);
src = coding->source + offset;
- src_end = coding->source + coding->src_bytes;
+ src_end = coding->source + coding->consumed;
if (EQ (coding->src_object, coding->dst_object))
dst_end = (unsigned char *) src;
}
@@ -7072,7 +7072,7 @@ produce_chars (coding, translation_table, last_block)
dst_end = coding->destination + coding->dst_bytes;
coding_set_source (coding);
src = coding->source + offset;
- src_end = coding->source + coding->src_bytes;
+ src_end = coding->source + coding->consumed;
if (EQ (coding->src_object, coding->dst_object))
dst_end = (unsigned char *) src;
}
@@ -7093,7 +7093,7 @@ produce_chars (coding, translation_table, last_block)
dst = alloc_destination (coding, require, dst);
coding_set_source (coding);
src = coding->source + offset;
- src_end = coding->source + coding->src_bytes;
+ src_end = coding->source + coding->consumed;
}
}
produced_chars = coding->consumed_char;

0 comments on commit 77a56e3

Please sign in to comment.