do not check the last character of the second header magic (Austrian EPG has a different value there)
This commit is contained in:
parent
b18b52df1c
commit
f0557c57e2
2
epg.c
2
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);
|
||||
|
|
Loading…
Reference in New Issue