From 52dd18670bf7d22ecf234141d3c7b7b9f67c6fa3 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 30 Aug 2023 15:05:34 +0200 Subject: methods: store: Use APT_BUFFER_SIZE (64k) instead of 4k buffers --- methods/store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods/store.cc b/methods/store.cc index 8ffc7b93d..ef2008273 100644 --- a/methods/store.cc +++ b/methods/store.cc @@ -103,7 +103,7 @@ bool StoreMethod::Fetch(FetchItem *Itm) /*{{{*/ Res.Size = 0; while (1) { - unsigned char Buffer[4*1024]; + unsigned char Buffer[APT_BUFFER_SIZE]; unsigned long long Count = 0; if (!From.Read(Buffer,sizeof(Buffer),&Count)) -- cgit v1.2.3-70-g09d2