changeset 107246:4cce9795bfd4

* w32uniscribe.c (uniscribe_check_otf): Fix length check.
author Andreas Schwab <schwab@linux-m68k.org>
date Sat, 27 Feb 2010 15:28:52 +0100
parents 528ba99a1dd3
children f900045f01ca
files src/ChangeLog src/w32uniscribe.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <schwab@linux-m68k.org>
+
+	* w32uniscribe.c (uniscribe_check_otf): Fix length check.
+
 2010-02-27  Chong Yidong  <cyd@stupidchicken.com>
 
 	* font.c (font_parse_fcname): Recognize "Book", "Condensed",
--- 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.  */