emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/coding.c,v


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/src/coding.c,v
Date: Tue, 27 May 2008 15:56:59 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Stefan Monnier <monnier>        08/05/27 15:56:59

Index: coding.c
===================================================================
RCS file: /sources/emacs/emacs/src/coding.c,v
retrieving revision 1.383
retrieving revision 1.384
diff -u -b -r1.383 -r1.384
--- coding.c    27 May 2008 15:49:49 -0000      1.383
+++ coding.c    27 May 2008 15:56:59 -0000      1.384
@@ -4818,6 +4818,7 @@
   int *charbuf_end = coding->charbuf + coding->charbuf_used;
   unsigned char *dst = coding->destination + coding->produced;
   unsigned char *dst_end = coding->destination + coding->dst_bytes;
+  int produced_chars = 0;
   int c;
 
   if (multibytep)
@@ -4880,9 +4881,10 @@
          while (charbuf < charbuf_end && dst < dst_end)
            *dst++ = *charbuf++;
        }
+      produced_chars = charbuf - coding->charbuf;
     }
   record_conversion_result (coding, CODING_RESULT_SUCCESS);
-  coding->produced_char += charbuf - coding->charbuf;
+  coding->produced_char += produced_chars;
   coding->produced = dst - coding->destination;
   return 0;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]