From 739fa967378bfa8956352c9789692a5232a67f66 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 24 May 2020 20:38:48 -0700 Subject: [PATCH] Change odd-ball map_ptr() to use remainder like the others. --- checksum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checksum.c b/checksum.c index 4aa9f4b7..fb771402 100644 --- a/checksum.c +++ b/checksum.c @@ -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); -- 2.47.3