shithub: freetype+ttf2subf

Download patch

ref: 934d054f451079e3521ddec732b474fc15cd6c06
parent: 0197508440b39fbfd5f1e9ab7ff946ba4944ba72
author: Werner Lemberg <[email protected]>
date: Fri Nov 20 01:26:22 EST 2009

Fix Savannah bug #28036.

* src/type1/t1afm.c (t1_get_index): Fix comparison.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-20  Werner Lemberg  <[email protected]>
+
+	Fix Savannah bug #28036.
+
+	* src/type1/t1afm.c (t1_get_index): Fix comparison.
+
 2009-11-16  Werner Lemberg  <[email protected]>
 
 	Fix compiler warnings.
--- 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++ )