* src/font.c (font_parse_fcname): Fix typo in string length.
authorChong Yidong <cyd@stupidchicken.com>
Wed, 26 Jan 2011 16:28:49 +0000 (11:28 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 26 Jan 2011 16:28:49 +0000 (11:28 -0500)
src/ChangeLog
src/font.c

index 0539b84..bbfd959 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-26  Chong Yidong  <cyd@stupidchicken.com>
+
+       * font.c (font_parse_fcname): Fix typo in string length.
+
 2011-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
index c084778..96c0436 100644 (file)
@@ -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))