mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 11:50:51 -08:00
(font_parse_fcname): Store divider characters for unknown-spec list.
This commit is contained in:
parent
0c36bc4ede
commit
84d50b7123
1 changed files with 3 additions and 3 deletions
|
|
@ -1409,7 +1409,7 @@ font_parse_fcname (name, font)
|
|||
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 @@ font_parse_fcname (name, font)
|
|||
else
|
||||
{
|
||||
/* Unknown key */
|
||||
*copy++ = ':';
|
||||
bcopy (p, copy, word_len);
|
||||
copy += word_len;
|
||||
}
|
||||
|
|
@ -1482,8 +1483,7 @@ font_parse_fcname (name, font)
|
|||
Ffont_put (font, key, val);
|
||||
else
|
||||
{
|
||||
if (copy_start != copy)
|
||||
*copy++ = ':';
|
||||
*copy++ = ':';
|
||||
bcopy (keyhead, copy, q - keyhead);
|
||||
copy += q - keyhead;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue