summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorthibault.ferrante <thibault.ferrante@gmail.com>2021-01-07 17:25:23 +0100
committerTimo Teräs <timo.teras@iki.fi>2021-01-11 11:26:49 +0200
commit18b0b45b5b4e8d7be19afa1492c32abb75b9da4a (patch)
treeb47050d3b679535ee3aa36ceaaa5e25eb10c9f5b /src/io.c
parent0fb0d304774630d53867fa3563dfd39246cc67b7 (diff)
downloadapk-tools-18b0b45b5b4e8d7be19afa1492c32abb75b9da4a.tar.gz
apk-tools-18b0b45b5b4e8d7be19afa1492c32abb75b9da4a.tar.bz2
apk-tools-18b0b45b5b4e8d7be19afa1492c32abb75b9da4a.tar.xz
apk-tools-18b0b45b5b4e8d7be19afa1492c32abb75b9da4a.zip
io: Handle long lines
As an APKINDEX can become arbitrarely long due to dependencies and other parameters, increasing the buffer size make this less likely to happens. Closes #10731.
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index dde1d23..3258ff8 100644
--- a/src/io.c
+++ b/src/io.c
@@ -32,7 +32,7 @@
#define HAVE_FGETGRENT_R
#endif
-size_t apk_io_bufsize = 8*1024;
+size_t apk_io_bufsize = 16*1024;
static void apk_file_meta_from_fd(int fd, struct apk_file_meta *meta)
{