mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-06 11:55:48 +00:00
(font_parse_fcname): Store divider characters for unknown-spec list.
This commit is contained in:
parent
0c36bc4ede
commit
84d50b7123
@ -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…
Reference in New Issue
Block a user