From 70a2c425863a9faf2e5da8773d01a9c8c5071a49 Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 5 Oct 2001 09:42:50 +0000 Subject: [PATCH] fixing a bug related to decoding glyph names like "uniXXXX" into Unicode character codes --- src/psnames/psmodule.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/psnames/psmodule.c b/src/psnames/psmodule.c index eaf4aa496..7760588b1 100644 --- a/src/psnames/psmodule.c +++ b/src/psnames/psmodule.c @@ -61,7 +61,7 @@ FT_Int count; FT_ULong value = 0; - const char* p = glyph_name + 4; + const char* p = glyph_name + 3; for ( count = 4; count > 0; count--, p++ ) @@ -85,10 +85,9 @@ break; value = ( value << 4 ) + d; - - if ( count == 0 ) - return value; } + if ( count == 0 ) + return value; } /* look for a non-initial dot in the glyph name in order to */