diff --git a/lib/util_hash.c b/lib/util_hash.c index 6306dfb6..a374c332 100644 --- a/lib/util_hash.c +++ b/lib/util_hash.c @@ -65,7 +65,7 @@ xbps_file_hash(const char *file) char hash[SHA256_DIGEST_LENGTH * 2 + 1]; unsigned char digest[SHA256_DIGEST_LENGTH]; ssize_t ret; - unsigned char buf[256]; + unsigned char buf[4096]; int fd; if ((fd = open(file, O_RDONLY)) == -1)