aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 537f69ebe1f..50268099413 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5244,7 +5244,7 @@ encode_coding_ccl (struct coding_system *coding)
5244 && coding->mode & CODING_MODE_LAST_BLOCK) 5244 && coding->mode & CODING_MODE_LAST_BLOCK)
5245 ccl->last_block = 1; 5245 ccl->last_block = 1;
5246 5246
5247 while (charbuf < charbuf_end) 5247 do
5248 { 5248 {
5249 ccl_driver (ccl, charbuf, destination_charbuf, 5249 ccl_driver (ccl, charbuf, destination_charbuf,
5250 charbuf_end - charbuf, 1024, charset_list); 5250 charbuf_end - charbuf, 1024, charset_list);
@@ -5266,6 +5266,7 @@ encode_coding_ccl (struct coding_system *coding)
5266 || ccl->status == CCL_STAT_INVALID_CMD) 5266 || ccl->status == CCL_STAT_INVALID_CMD)
5267 break; 5267 break;
5268 } 5268 }
5269 while (charbuf < charbuf_end);
5269 5270
5270 switch (ccl->status) 5271 switch (ccl->status)
5271 { 5272 {