From 90c00b018dde161df77af51ef596101f9c9bc3bb Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 16 Jun 2008 01:59:40 +0000 Subject: [PATCH] (font_parse_fcname): Correctly parse KEY=VAL values. --- src/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/font.c b/src/font.c index 72b35f820d9..ace61a3e450 100644 --- a/src/font.c +++ b/src/font.c @@ -1467,7 +1467,7 @@ font_parse_fcname (name, font) 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 @@ font_parse_fcname (name, font) 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 -- 2.39.2