mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-01 19:45:58 -04:00
Change odd-ball map_ptr() to use remainder like the others.
This commit is contained in:
@@ -373,7 +373,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
|
||||
|
||||
remainder = (int32)(len - i);
|
||||
if (remainder > 0)
|
||||
XXH64_update(state, (uchar *)map_ptr(buf, i, CHUNK_SIZE), remainder);
|
||||
XXH64_update(state, (uchar *)map_ptr(buf, i, remainder), remainder);
|
||||
SIVAL64(sum, 0, XXH64_digest(state));
|
||||
|
||||
XXH64_freeState(state);
|
||||
|
||||
Reference in New Issue
Block a user