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-Tag: v2.6.3pre1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd1a581beee5402379052df58164f57d99c7757a;p=thirdparty%2Frsync.git 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);