aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2010-02-27 15:28:52 +0100
committerAndreas Schwab <[email protected]>2010-02-27 15:28:52 +0100
commitdf7e1ea0871a6e2bf07347c163222a4025b7b1a5 (patch)
tree292d4797fada821ffc297a2e0522b0601cf09380 /src
parent8ff35869753b7ef1bd479d99fe685a47fa6b73ed (diff)
* w32uniscribe.c (uniscribe_check_otf): Fix length check.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32uniscribe.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ac909cc788..6cafe2f60a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-27 Andreas Schwab <[email protected]>
+
+ * w32uniscribe.c (uniscribe_check_otf): Fix length check.
+
2010-02-27 Chong Yidong <[email protected]>
* font.c (font_parse_fcname): Recognize "Book", "Condensed",
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c
index f2bd0f44b5..cfdf629cee 100644
--- a/src/w32uniscribe.c
+++ b/src/w32uniscribe.c
@@ -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. */