coding.c (encode_coding_ccl): Check (charbuf < charbuf_end) after the loop to call ccl_driver at least once.

This commit is contained in:
Kenichi Handa 2011-12-08 14:54:20 +09:00
parent 745fff94a0
commit 76470ad1a0
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-12-08 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (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 <handa@m17n.org>
* ftfont.c (get_adstyle_property): Fix previous change

View file

@ -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)
{