🐛 Fix local file header

This commit is contained in:
C-3PO 2018-07-24 20:04:41 +02:00
parent 476266863f
commit 966e8bb7c1
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

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