mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 16:06:30 -05:00
Uses the CRC_IV directly in the crc32c() function.
This commit is contained in:
parent
5136eb3719
commit
9d00435b42
4 changed files with 21 additions and 13 deletions
2
state.c
2
state.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue