summaryrefslogtreecommitdiff
path: root/checksum.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-08-03 15:37:54 +0000
committerWayne Davison <wayned@samba.org>2004-08-03 15:37:54 +0000
commitbd1a581beee5402379052df58164f57d99c7757a (patch)
treea89a921ca93582ed1de21b40ae84fc5a53e7a326 /checksum.c
parent6e8a1782ab7ed52c623038821b335fd25578dea5 (diff)
downloadrsync-bd1a581beee5402379052df58164f57d99c7757a.tar.gz
Use MAX_MAP_SIZE in the args to map_file().
Diffstat (limited to 'checksum.c')
-rw-r--r--checksum.c2
1 files changed, 1 insertions, 1 deletions
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);