From: Wayne Davison Date: Tue, 3 Aug 2004 15:37:54 +0000 (+0000) Subject: Use MAX_MAP_SIZE in the args to map_file(). X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/bd1a581beee5402379052df58164f57d99c7757a?hp=6e8a1782ab7ed52c623038821b335fd25578dea5 Use MAX_MAP_SIZE in the args to map_file(). --- diff --git a/checksum.c b/checksum.c index e3b8719a..b64f4c93 100644 --- a/checksum.c +++ b/checksum.c @@ -102,7 +102,7 @@ void file_checksum(char *fname,char *sum,OFF_T size) if (fd == -1) return; - buf = map_file(fd, size, CSUM_CHUNK * 2048, 0); + buf = map_file(fd, size, MAX_MAP_SIZE, CSUM_CHUNK); mdfour_begin(&m);