changeset 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 54598b651d15
children 3e03d72fadea
files src/coding.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Jun 15 11:00:08 2000 +0000
+++ b/src/coding.c	Thu Jun 15 11:02:26 2000 +0000
@@ -584,12 +584,11 @@
   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;