From df689c25ce691367dd8e24867ddca67150259976 Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 1 May 2002 08:36:12 +0000 Subject: [PATCH] * src/sfnt/sfobjs.c (tt_face_get_name): fixing a bug that caused FreeType to crash when certain broken fonts (like "hya6gb.ttf") were opened. --- src/sfnt/sfobjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c index 2e6326d15..f9c77bc1b 100644 --- a/src/sfnt/sfobjs.c +++ b/src/sfnt/sfobjs.c @@ -159,7 +159,7 @@ rec = face->name_table.names; - for ( n = 0; n < face->name_table.numNameRecords; n++, rec++ ) + for ( n = 0; n < face->num_names; n++, rec++ ) { /* According to the OpenType 1.3 specification, only Microsoft or */ /* Apple platform IDs might be used in the `name' table. The */