diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-11 16:35:18 +0100 |
|---|---|---|
| committer | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-11 18:14:17 +0100 |
| commit | c87f3bdd1790bb75447c2ec8f95e5e07bdce58d5 (patch) | |
| tree | 8e123df8e0bf28104f8520c67daacd8006df3b7f /test/interactive-helper/mthdcat.cc | |
| parent | 4df49c4db761e2ad053a1b250463b6b9e4770932 (diff) | |
mthdcat: use APT_BUFFER_SIZE I/O buffer
Diffstat (limited to 'test/interactive-helper/mthdcat.cc')
| -rw-r--r-- | test/interactive-helper/mthdcat.cc | 5 |
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)); |
