From: Michael Tremer Date: Fri, 9 Sep 2022 16:11:13 +0000 (+0000) Subject: snapshot: Use PAKFIRE_BUFFER_SIZE X-Git-Tag: 0.9.28~315 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7389470d8618897f8f8ba4716baaa162dade8807;p=pakfire.git snapshot: Use PAKFIRE_BUFFER_SIZE Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/snapshot.c b/src/libpakfire/snapshot.c index 4fb7b682a..ed13c1cfc 100644 --- a/src/libpakfire/snapshot.c +++ b/src/libpakfire/snapshot.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -178,7 +179,7 @@ static int pakfire_snapshot_extract(struct pakfire* pakfire, const char* path) { archive_read_support_filter_zstd(archive); // Open the given file for reading - r = archive_read_open_filename(archive, path, 64 * 1024); + r = archive_read_open_filename(archive, path, PAKFIRE_BUFFER_SIZE); if (r) { ERROR(pakfire, "Could not open archive: %s\n", archive_error_string(archive)); goto ERROR;