]> git.eshelyaron.com Git - emacs.git/commitdiff
* w32uniscribe.c (uniscribe_check_otf): Fix length check.
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 27 Feb 2010 14:28:52 +0000 (15:28 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 27 Feb 2010 14:28:52 +0000 (15:28 +0100)
src/ChangeLog
src/w32uniscribe.c

index ac909cc788521d75ce0491349ef2f03d1df9adad..6cafe2f60a54f669bcab461cd37695dabd8b0969 100644 (file)
@@ -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",
index f2bd0f44b50fcff4b42d5541c244a1cf43db8560..cfdf629ceee05e6ea6f12a5fd20e5be061e92f08 100644 (file)
@@ -666,7 +666,7 @@ int uniscribe_check_otf (font, otf_spec)
   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.  */