From afcad1f44438f701c6f29bdd685b0d079e4d3a12 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 7 Nov 2014 10:28:04 -0800 Subject: [PATCH] Refine dump_fonts() slightly. --- dump.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dump.c b/dump.c index f1f212bd3d..f87c78b8ff 100644 --- a/dump.c +++ b/dump.c @@ -580,12 +580,20 @@ dump_fonts(void) match_byte_assert(0x50); if (!match_byte(0x41)) match_byte_assert(0x51); - pos += 13; + if (!match_u32(0)) + match_u32_assert(1); + match_byte_assert(0); + pos++; + pos++; + match_byte_assert(0); + match_byte_assert(0); + if (!match_u32(0) && !match_u32(1) && !match_u32(2)) + match_u32_assert(3); printf ("%s, ", get_string()); printf ("%s, ", get_string()); match_u32_assert(0); match_u32_assert(0); - pos++; + match_byte_assert(0); get_u32(); get_u32(); get_u32(); -- 2.30.2