From f0557c57e222527284e0c442a0d61cd792963b51 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sat, 18 Feb 2012 21:53:23 +0000 Subject: [PATCH] do not check the last character of the second header magic (Austrian EPG has a different value there) --- epg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);