1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00

Fixed gzip crc

This commit is contained in:
bzt 2021-04-08 18:57:47 +02:00
parent 98fbe4c589
commit bf82d5c686

View file

@ -168,9 +168,9 @@ void initrdcompress()
fs_base[0] = 0x1f; fs_base[1] = 0x8b; fs_base[2] = 0x8; fs_base[9] = 3;
memcpy(fs_base + 4, &t, 4);
memcpy(fs_base + 10, initrdgz + 2, initrdgz_len - 2);
memcpy(fs_base + 10 + initrdgz_len - 2, &crc, 4);
memcpy(fs_base + 14 + initrdgz_len - 2, &fs_len, 4);
fs_len = initrdgz_len - 2 + 18;
memcpy(fs_base + 10 + initrdgz_len - 6, &crc, 4);
memcpy(fs_base + 10 + initrdgz_len - 2, &fs_len, 4);
fs_len = initrdgz_len - 2 + 14;
}
free(initrdgz);
}