Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 3abbfd020708a27ed7cf2c9ec841de3bb20c7fac 2 parents dbc717b + 77a56e3
Kenichi Handa authored
Showing with 7 additions and 3 deletions.
  1. +4 −0 src/ChangeLog
  2. +3 −3 src/coding.c
View
4 src/ChangeLog
@@ -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
6 src/coding.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.