From 8a33cf7b2129899072050b94c9dd8ee2d95c79ea Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 15 Jun 2000 11:02:26 +0000 Subject: [PATCH] (decode_coding_emacs_mule): Always set src_base at the start of the while loop. --- src/coding.c | 3 +-- 1 file changed, 1 insertion(+), 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) unsigned char *src_base; coding->produced_char = 0; - while (src < src_end) + while ((src_base = src) < src_end) { unsigned char tmp[MAX_MULTIBYTE_LENGTH], *p; int bytes; - src_base = src; if (UNIBYTE_STR_AS_MULTIBYTE_P (src, src_end - src, bytes)) { p = src; -- 2.39.5