do not check the last character of the second header magic (Austrian EPG has a different value there)

This commit is contained in:
hummypkg 2012-02-18 21:53:23 +00:00 committed by HummyPkg
parent b18b52df1c
commit f0557c57e2
1 changed files with 1 additions and 1 deletions

2
epg.c
View File

@ -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);