(read_table_directory): Fix setting of tag name.
authorhanda <handa>
Fri, 23 Jun 2006 07:27:14 +0000 (07:27 +0000)
committerhanda <handa>
Fri, 23 Jun 2006 07:27:14 +0000 (07:27 +0000)
src/otfopen.c

index bcd0d0d..90ca408 100644 (file)
@@ -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);