(read_table_directory): Fix setting of
authorhanda <handa>
Fri, 10 Feb 2006 05:03:19 +0000 (05:03 +0000)
committerhanda <handa>
Fri, 10 Feb 2006 05:03:19 +0000 (05:03 +0000)
OTF_TableDirectory->name.

src/otfopen.c

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