Mercurial > emacs
changeset 96030:2a8c4f357ec4
(font_parse_fcname): Store divider characters for unknown-spec list.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Tue, 17 Jun 2008 05:33:06 +0000 |
parents | 7392fa72fdd0 |
children | edf0549afd4a |
files | src/font.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/font.c Tue Jun 17 05:32:19 2008 +0000 +++ b/src/font.c Tue Jun 17 05:33:06 2008 +0000 @@ -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,8 +1483,7 @@ Ffont_put (font, key, val); else { - if (copy_start != copy) - *copy++ = ':'; + *copy++ = ':'; bcopy (keyhead, copy, q - keyhead); copy += q - keyhead; }