]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Increase read buffer in read_fd2()
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Sep 2010 08:50:03 +0000 (10:50 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Sep 2010 08:51:55 +0000 (10:51 +0200)
hash.c

diff --git a/hash.c b/hash.c
index 88996eda27d4a2ec42ab6ff7f4e3df8cc5624539..10be6a96486129b3b60d872d9be9b772360a60a7 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -106,7 +106,7 @@ hash_fd(struct mdfour *md, int fd)
 bool
 hash_fd2(struct mdfour *md1, struct mdfour *md2, int fd)
 {
-       char buf[1024];
+       char buf[16384];
        ssize_t n;
 
        while ((n = read(fd, buf, sizeof(buf))) > 0) {