From: Wayne Davison Date: Mon, 25 May 2020 03:38:48 +0000 (-0700) Subject: Change odd-ball map_ptr() to use remainder like the others. X-Git-Tag: v3.2.0pre1~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=739fa967378bfa8956352c9789692a5232a67f66;p=thirdparty%2Frsync.git Change odd-ball map_ptr() to use remainder like the others. --- 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);