diff --git a/epg.c b/epg.c index a6daeca..613ff83 100644 --- a/epg.c +++ b/epg.c @@ -23,7 +23,7 @@ read_section(struct epg *epg) return NULL; memcpy(&h, epg->bin + epg->offset, sizeof(h)); - if (memcmp(h.magic, SECTION_MAGIC, sizeof(h.magic))) + if (memcmp(h.magic, SECTION_MAGIC, sizeof(h.magic) - 1)) { printf("Section header magic mismatch.\n"); hexdump(epg->bin + epg->offset, 64, 0);