Use MAX_MAP_SIZE in the args to map_file().
authorWayne Davison <wayned@samba.org>
Tue, 3 Aug 2004 15:37:54 +0000 (15:37 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 3 Aug 2004 15:37:54 +0000 (15:37 +0000)
checksum.c

index e3b8719..b64f4c9 100644 (file)
@@ -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);