From: handa Date: Fri, 23 Jun 2006 07:27:14 +0000 (+0000) Subject: (read_table_directory): Fix setting of tag name. X-Git-Tag: REL-0-9-5~26 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4fc92ffb9a1c61a01a7ba821894d84f1f972d1c;p=m17n%2Flibotf.git (read_table_directory): Fix setting of tag name. --- 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);