From 839699555bfdd7d0f817e128f630865a1bd30ba0 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 10 Feb 2006 05:03:19 +0000 Subject: [PATCH] (read_table_directory): Fix setting of OTF_TableDirectory->name. --- src/otfopen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/otfopen.c b/src/otfopen.c index d2216a0..bcd0d0d 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -2598,8 +2598,8 @@ read_table_directory (OTF_Stream *stream, OTF_TableDirectory *table) table->tag = tag; table->name[0] = tag >> 24; table->name[1] = (tag >> 16) & 0xFF; - table->name[0] = (tag >> 8) & 0xFF; - table->name[0] = tag >> 8; + table->name[2] = (tag >> 8) & 0xFF; + table->name[3] = tag >> 8; table->name[0] = '\0'; READ_ULONG (stream, table->checkSum); READ_ULONG (stream, table->offset); -- 1.7.10.4