qemacs-commit
[Top][All Lists]
Advanced

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

[Qemacs-commit] qemacs util.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs util.c
Date: Wed, 26 Mar 2008 20:32:47 +0000

CVSROOT:        /cvsroot/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        08/03/26 20:32:47

Modified files:
        .              : util.c 

Log message:
        fixed bug in buf_putc_utf8

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/util.c?cvsroot=qemacs&r1=1.40&r2=1.41

Patches:
Index: util.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/util.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -b -r1.40 -r1.41
--- util.c      26 Mar 2008 08:03:56 -0000      1.40
+++ util.c      26 Mar 2008 20:32:47 -0000      1.41
@@ -1381,9 +1381,9 @@
 
         if (buf_avail(bp) >= len) {
             memcpy(bp->buf + bp->len, buf, len);
-            bp->buf[bp->len] = '\0';
             bp->pos += len;
             bp->len += len;
+            bp->buf[bp->len] = '\0';
             return len;
         }
         bp->pos += len;




reply via email to

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