aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2000-06-15 11:02:26 +0000
committerKenichi Handa2000-06-15 11:02:26 +0000
commit8a33cf7b2129899072050b94c9dd8ee2d95c79ea (patch)
tree745231369a7b5c1e5622c1704326a8351fc20569 /src/coding.c
parentc25b53a280cad6ff829fd517307cea44214201c3 (diff)
downloademacs-8a33cf7b2129899072050b94c9dd8ee2d95c79ea.tar.gz
emacs-8a33cf7b2129899072050b94c9dd8ee2d95c79ea.zip
(decode_coding_emacs_mule): Always set src_base at the
start of the while loop.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index bd2887e6697..0b70480b965 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -584,12 +584,11 @@ decode_coding_emacs_mule (coding, source, destination, src_bytes, dst_bytes)
584 unsigned char *src_base; 584 unsigned char *src_base;
585 585
586 coding->produced_char = 0; 586 coding->produced_char = 0;
587 while (src < src_end) 587 while ((src_base = src) < src_end)
588 { 588 {
589 unsigned char tmp[MAX_MULTIBYTE_LENGTH], *p; 589 unsigned char tmp[MAX_MULTIBYTE_LENGTH], *p;
590 int bytes; 590 int bytes;
591 591
592 src_base = src;
593 if (UNIBYTE_STR_AS_MULTIBYTE_P (src, src_end - src, bytes)) 592 if (UNIBYTE_STR_AS_MULTIBYTE_P (src, src_end - src, bytes))
594 { 593 {
595 p = src; 594 p = src;