Uses the CRC_IV directly in the crc32c() function.

This commit is contained in:
Andrea Mazzoleni 2013-08-19 12:45:12 +02:00
parent 5136eb3719
commit 9d00435b42
4 changed files with 21 additions and 13 deletions

View file

@ -2103,7 +2103,7 @@ static void decoding_error(const char* path, STREAM* f)
crc_computed = scrc(f);
/* adjust the stored crc to include itself */
crc_stored = crc32c(crc_stored ^ CRC_IV, buf, 4) ^ CRC_IV;
crc_stored = crc32c(crc_stored, buf, 4);
if (crc_computed != crc_stored) {
fprintf(stderr, "Mismatching CRC in '%s'\n", path);