# HG changeset patch # User Andreas Schwab # Date 1267280932 -3600 # Node ID 4cce9795bfd48812392fd9685768e856290fcda2 # Parent 528ba99a1dd3868cc06e80e995af1506d8c80f7a * w32uniscribe.c (uniscribe_check_otf): Fix length check. diff -r 528ba99a1dd3 -r 4cce9795bfd4 src/ChangeLog --- a/src/ChangeLog Sat Feb 27 00:01:11 2010 +0000 +++ b/src/ChangeLog Sat Feb 27 15:28:52 2010 +0100 @@ -1,3 +1,7 @@ +2010-02-27 Andreas Schwab + + * w32uniscribe.c (uniscribe_check_otf): Fix length check. + 2010-02-27 Chong Yidong * font.c (font_parse_fcname): Recognize "Book", "Condensed", diff -r 528ba99a1dd3 -r 4cce9795bfd4 src/w32uniscribe.c --- a/src/w32uniscribe.c Sat Feb 27 00:01:11 2010 +0000 +++ b/src/w32uniscribe.c Sat Feb 27 15:28:52 2010 +0100 @@ -666,7 +666,7 @@ struct gcpro gcpro1; /* Check the spec is in the right format. */ - if (!CONSP (otf_spec) || Flength (otf_spec) < 3) + if (!CONSP (otf_spec) || XINT (Flength (otf_spec)) < 3) return 0; /* Break otf_spec into its components. */