summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2023-08-30 15:05:34 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2023-08-30 15:05:34 +0200
commit52dd18670bf7d22ecf234141d3c7b7b9f67c6fa3 (patch)
tree09c18b928584e307e2cea53c42bdd1cd49067342
parentaa56836331870d975c212a5df2f13db9ce3914bf (diff)
methods: store: Use APT_BUFFER_SIZE (64k) instead of 4k buffers
-rw-r--r--methods/store.cc2
1 files changed, 1 insertions, 1 deletions
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))