X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=dump.c;h=9e1bfd9f960b2f97379db046204193bcd6cdfd6a;hb=d311608bad61aa116bea4d1ff1b1ea9d45f798b7;hp=4d7d7f468e694bfa11a59900f45c46920dd84146;hpb=6a45803579c7f58e62668306240784beec7a611a;p=pspp diff --git a/dump.c b/dump.c index 4d7d7f468e..9e1bfd9f96 100644 --- a/dump.c +++ b/dump.c @@ -879,19 +879,15 @@ dump_fonts(void) match_u32_assert(18); pos += 18; - if (match_u32(117)) - pos += 117; - else if (match_u32(142)) - pos += 142; - else if (match_u32(143)) - pos += 143; - else if (match_u32(150)) - pos += 150; - else + int x3 = get_u32(); + if (version == 3) { - match_u32_assert(16); - pos += 16; + assert(x3 >= 117); + int len = data[pos + 0x34]; + if (len) + fprintf(stderr, "%.*s\n", len, &data[pos + 0x35]); } + pos += x3; int count = get_u32(); pos += 4 * count;