From a4fc92ffb9a1c61a01a7ba821894d84f1f972d1c Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 23 Jun 2006 07:27:14 +0000 Subject: [PATCH] (read_table_directory): Fix setting of tag name. --- src/otfopen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/otfopen.c b/src/otfopen.c index bcd0d0d..90ca408 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -2599,8 +2599,8 @@ read_table_directory (OTF_Stream *stream, OTF_TableDirectory *table) table->name[0] = tag >> 24; table->name[1] = (tag >> 16) & 0xFF; table->name[2] = (tag >> 8) & 0xFF; - table->name[3] = tag >> 8; - table->name[0] = '\0'; + table->name[3] = tag & 0xFF; + table->name[4] = '\0'; READ_ULONG (stream, table->checkSum); READ_ULONG (stream, table->offset); READ_ULONG (stream, table->length); -- 1.7.10.4