]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_coding_emacs_mule): Always set src_base at the
authorKenichi Handa <handa@m17n.org>
Thu, 15 Jun 2000 11:02:26 +0000 (11:02 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 15 Jun 2000 11:02:26 +0000 (11:02 +0000)
start of the while loop.

src/coding.c

index bd2887e6697c1da1452d358a4addecb787dcda5b..0b70480b96593b6d8eb711e18d888b602d84e40a 100644 (file)
@@ -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;