diff --git a/crypto/digest.c b/crypto/digest.c index aff6d98..980a694 100644 --- a/crypto/digest.c +++ b/crypto/digest.c @@ -232,7 +232,7 @@ buf = memmap(fd, PROT_READ); if (buf == MAP_FAILED) { - buf = xmalloc(4096); + buf = xmalloc(PAGE_SIZE); flags = 1; } @@ -249,7 +249,7 @@ } while (size) { - now = min((ulong)4096, size); + now = min((ulong)PAGE_SIZE, size); if (flags) { now = read(fd, buf, now); if (now < 0) {