Fix Savannah bug #28036. * src/type1/t1afm.c (t1_get_index): Fix comparison.
diff --git a/ChangeLog b/ChangeLog
index 874e6e5..4032df9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-20 Werner Lemberg <wl@gnu.org>
+
+ Fix Savannah bug #28036.
+
+ * src/type1/t1afm.c (t1_get_index): Fix comparison.
+
2009-11-16 Werner Lemberg <wl@gnu.org>
Fix compiler warnings.
diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c
index 505eb24..ef34390 100644
--- a/src/type1/t1afm.c
+++ b/src/type1/t1afm.c
@@ -58,7 +58,7 @@
/* PS string/name length must be < 16-bit */
- if ( ( len - 0xFFFFU ) > 0 )
+ if ( len > 0xFFFFU )
return 0;
for ( n = 0; n < type1->num_glyphs; n++ )