From 934d054f451079e3521ddec732b474fc15cd6c06 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 20 Nov 2009 06:26:22 +0100 Subject: [PATCH] Fix Savannah bug #28036. * src/type1/t1afm.c (t1_get_index): Fix comparison. --- ChangeLog | 6 ++++++ src/type1/t1afm.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 874e6e501..4032df920 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-20 Werner Lemberg + + Fix Savannah bug #28036. + + * src/type1/t1afm.c (t1_get_index): Fix comparison. + 2009-11-16 Werner Lemberg Fix compiler warnings. diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c index 505eb2474..ef343901a 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++ )