From c87f3bdd1790bb75447c2ec8f95e5e07bdce58d5 Mon Sep 17 00:00:00 2001 From: наб Date: Mon, 11 Nov 2024 16:35:18 +0100 Subject: mthdcat: use APT_BUFFER_SIZE I/O buffer --- test/interactive-helper/mthdcat.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/interactive-helper/mthdcat.cc') 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 +#include #include int main() { - char Buffer[4096]; - + char Buffer[APT_BUFFER_SIZE]; + while (1) { int Res = read(STDIN_FILENO,Buffer,sizeof(Buffer)); -- cgit v1.2.3-70-g09d2