* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/ChangeLog b/ChangeLog
index c05b0df..08872c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-28 KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp>
+
+ * src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos.
+
2002-03-28 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/psaux.h (PSAux_ServiceRec): Fix
diff --git a/src/sfnt/sfdriver.c b/src/sfnt/sfdriver.c
index c698022..8f29a2b 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;