diff --git a/src/ChangeLog b/src/ChangeLog index 0539b849efc..bbfd9592cf1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-01-26 Chong Yidong + + * font.c (font_parse_fcname): Fix typo in string length. + 2011-01-24 Stefan Monnier * xdisp.c (handle_fontified_prop): Be careful with font-lock changing diff --git a/src/font.c b/src/font.c index c08477821ed..96c043626f2 100644 --- a/src/font.c +++ b/src/font.c @@ -1603,7 +1603,7 @@ font_parse_fcname (name, font) else if (PROP_MATCH ("Italic", 6)) { prop_found = 1; - prop = font_intern_prop ("italic", 4, 1); + prop = font_intern_prop ("italic", 6, 1); FONT_SET_STYLE (font, FONT_SLANT_INDEX, prop); } else if (PROP_MATCH ("Oblique", 7))