diff options
| author | Kenichi Handa | 2000-06-15 11:02:26 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-06-15 11:02:26 +0000 |
| commit | 8a33cf7b2129899072050b94c9dd8ee2d95c79ea (patch) | |
| tree | 745231369a7b5c1e5622c1704326a8351fc20569 /src/coding.c | |
| parent | c25b53a280cad6ff829fd517307cea44214201c3 (diff) | |
| download | emacs-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.c | 3 |
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; |