summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2024-11-12 13:29:09 +0000
committerJulian Andres Klode <jak@debian.org>2024-11-12 13:29:09 +0000
commit8fd0ebc330bcdbced85877ff48bf40582bf983f9 (patch)
tree9e8c83e567731fba5f00cc959b075fa0ee9533ba /test
parent8342f913c05c453e784bf038745351047d09af0a (diff)
parenta05e6fe18329ff8d91acf10efd4a1408858b0fda (diff)
Merge branch 'more' into 'main'
APT_BUFFER_SIZE pkgTagFile default size. std::vector(1024) -> std::array<1024>. dpkgpm buffers See merge request apt-team/apt!390
Diffstat (limited to 'test')
-rw-r--r--test/interactive-helper/mthdcat.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/interactive-helper/mthdcat.cc b/test/interactive-helper/mthdcat.cc
index 2961b2080..8826faad3 100644
--- a/test/interactive-helper/mthdcat.cc
+++ b/test/interactive-helper/mthdcat.cc
@@ -3,13 +3,14 @@
the file ends */
#include <config.h>
+#include <apt-pkg/macros.h>
#include <unistd.h>
int main()
{
- char Buffer[4096];
-
+ char Buffer[APT_BUFFER_SIZE];
+
while (1)
{
int Res = read(STDIN_FILENO,Buffer,sizeof(Buffer));