From: handa Date: Fri, 10 Feb 2006 05:03:19 +0000 (+0000) Subject: (read_table_directory): Fix setting of X-Git-Tag: REL-0-9-5~30 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=839699555bfdd7d0f817e128f630865a1bd30ba0;p=m17n%2Flibotf.git (read_table_directory): Fix setting of OTF_TableDirectory->name. --- 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);