lib/util_hash.c: enlarge read buffer for xbps_file_hash to increase performance.

This commit is contained in:
Enno Boland 2014-09-18 18:34:15 +02:00
parent c51d0fcbd8
commit 5bbcdf2c62

View File

@ -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)