🐛 Fix local file header
This commit is contained in:
parent
476266863f
commit
966e8bb7c1
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@ int main(int argc, unsigned char *argv[]) {
|
||||||
char* fileHeader = getBytes(30UL);
|
char* fileHeader = getBytes(30UL);
|
||||||
//Check that header is correct
|
//Check that header is correct
|
||||||
const uint32_t magic = getUint32(fileHeader);
|
const uint32_t magic = getUint32(fileHeader);
|
||||||
if (magic != (uint32_t)0x06054b50) {
|
if (magic != (uint32_t)0x04034b50) {
|
||||||
fprintf(stderr, "Wrong magic in local file header, expected 0x06054b50 but found %#010x.", magic);
|
fprintf(stderr, "Wrong magic in local file header, expected 0x04034b50 but found %#010x.", magic);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
free(fileHeader);
|
free(fileHeader);
|
||||||
|
|
Loading…
Reference in a new issue