comparison src/coding.c @ 29663:ebf778ab6b42

(decode_coding_emacs_mule): Always set src_base at the start of the while loop.
author Kenichi Handa <handa@m17n.org>
date Thu, 15 Jun 2000 11:02:26 +0000
parents b33b38d81020
children 2bc397e9b09a
comparison
equal deleted inserted replaced
29662:54598b651d15 29663:ebf778ab6b42
582 when there's not enough destination area to produce a 582 when there's not enough destination area to produce a
583 character. */ 583 character. */
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;
596 src += bytes; 595 src += bytes;
597 } 596 }