aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2011-12-08 14:54:20 +0900
committerKenichi Handa <[email protected]>2011-12-08 14:54:20 +0900
commit76470ad1a01b2d38137fe5fb9e2a18446e7d4536 (patch)
tree41397ed8c85f7165dac323790ad544cb70b3060f /src
parent745fff94a04a8a959a0c3cf1a1d2db8531d38576 (diff)
coding.c (encode_coding_ccl): Check (charbuf < charbuf_end) after the loop to call ccl_driver at least once.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/coding.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 71b1b3fa82..056d0dbe66 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-08 Kazuhiro Ito <[email protected]> (tiny change)
+
+ * coding.c (encode_coding_ccl): Check (charbuf < charbuf_end)
+ after the loop to call ccl_driver at least once.
+
2011-12-08 Kenichi Handa <[email protected]>
* ftfont.c (get_adstyle_property): Fix previous change
diff --git a/src/coding.c b/src/coding.c
index 537f69ebe1..5026809941 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5244,7 +5244,7 @@ encode_coding_ccl (struct coding_system *coding)
&& coding->mode & CODING_MODE_LAST_BLOCK)
ccl->last_block = 1;
- while (charbuf < charbuf_end)
+ do
{
ccl_driver (ccl, charbuf, destination_charbuf,
charbuf_end - charbuf, 1024, charset_list);
@@ -5266,6 +5266,7 @@ encode_coding_ccl (struct coding_system *coding)
|| ccl->status == CCL_STAT_INVALID_CMD)
break;
}
+ while (charbuf < charbuf_end);
switch (ccl->status)
{