Mercurial > emacs
changeset 95983:104a55eb192a
(font_parse_fcname): Correctly parse KEY=VAL values.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 16 Jun 2008 01:59:40 +0000 |
parents | a0a2b7a545bb |
children | cf2b26adbb9b |
files | src/font.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/font.c Mon Jun 16 01:58:48 2008 +0000 +++ b/src/font.c Mon Jun 16 01:59:40 2008 +0000 @@ -1467,7 +1467,7 @@ Lisp_Object key; char *keyhead = p; - if (PROP_MATCH ("pixelsize=", 10)) + if (word_len == 9 && memcmp (p, "pixelsize=", 10) == 0) prop = FONT_SIZE_INDEX; else { @@ -1477,7 +1477,7 @@ p = q + 1; for (q = p; *q && *q != ':'; q++); - val = font_intern_prop (p, word_len, 0); + val = font_intern_prop (p, q - p, 0); if (! NILP (val)) { if (prop >= FONT_FOUNDRY_INDEX