From eb7730815c2f61906f88e7c3debb32489b3ac68b Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 28 Mar 2002 14:21:15 +0000 Subject: [PATCH] * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos. --- ChangeLog | 4 ++++ src/sfnt/sfdriver.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c05b0dfa1..08872c4da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-03-28 KUSANO Takayuki + + * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos. + 2002-03-28 Werner Lemberg * include/freetype/internal/psaux.h (PSAux_ServiceRec): Fix diff --git a/src/sfnt/sfdriver.c b/src/sfnt/sfdriver.c index c69802263..8f29a2b4f 100644 --- a/src/sfnt/sfdriver.c +++ b/src/sfnt/sfdriver.c @@ -146,7 +146,7 @@ } } - if ( found_win ) + if ( found_win != -1 ) { FT_Memory memory = face->root.memory; TT_NameEntryRec* name = face->name_table.names + found_win; @@ -168,10 +168,10 @@ goto Exit; } - if ( found_apple ) + if ( found_apple != -1 ) { FT_Memory memory = face->root.memory; - TT_NameEntryRec* name = face->name_table.names + found_win; + TT_NameEntryRec* name = face->name_table.names + found_apple; FT_UInt len = name->stringLength; FT_Error error;