summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/ftp.cc2
-rw-r--r--methods/rsh.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index 379bf32b6..5ceae4d70 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -936,7 +936,7 @@ bool FTPConn::Get(const char *Path,FileFd &To,unsigned long long Resume,
return false;
// Copy loop
- unsigned char Buffer[4096];
+ unsigned char Buffer[APT_BUFFER_SIZE];
while (1)
{
// Wait for some data..
diff --git a/methods/rsh.cc b/methods/rsh.cc
index 4432d5a5e..25d2a3286 100644
--- a/methods/rsh.cc
+++ b/methods/rsh.cc
@@ -357,7 +357,7 @@ bool RSHConn::Get(const char *Path,FileFd &To,unsigned long long Resume,
// Copy loop
unsigned long long MyLen = Resume;
- unsigned char Buffer[4096];
+ unsigned char Buffer[APT_BUFFER_SIZE];
while (MyLen < Size)
{
// Wait for some data..