emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/src/font.c,v
Date: Tue, 17 Jun 2008 05:33:07 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      08/06/17 05:33:07

Index: font.c
===================================================================
RCS file: /sources/emacs/emacs/src/font.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -b -r1.63 -r1.64
--- font.c      16 Jun 2008 19:11:02 -0000      1.63
+++ font.c      17 Jun 2008 05:33:06 -0000      1.64
@@ -1409,7 +1409,7 @@
             the key QCfc_unknown_spec.  */
          char *copy_start, *copy;
 
-         copy_start = copy = alloca (name + len - props_beg);
+         copy_start = copy = alloca (name + len - props_beg + 2);
          if (! copy)
            return -1;
 
@@ -1450,6 +1450,7 @@
                  else
                    {
                      /* Unknown key  */
+                     *copy++ = ':';
                      bcopy (p, copy, word_len);
                      copy += word_len;
                    }
@@ -1482,7 +1483,6 @@
                        Ffont_put (font, key, val);
                      else
                        {
-                         if (copy_start != copy)
                            *copy++ = ':';
                          bcopy (keyhead, copy, q - keyhead);
                          copy += q - keyhead;




reply via email to

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