diff options
Diffstat (limited to 'libbb/unarchive.c')
-rw-r--r-- | libbb/unarchive.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c index 5c5bb49f3..80dddb226 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c @@ -568,6 +568,9 @@ char *deb_extract(const char *package_filename, FILE *out_stream, /* open the debian package to be worked on */ deb_stream = wfopen(package_filename, "r"); + /* set the buffer size */ + setvbuf(deb_stream, NULL, _IOFBF, 0x8000); + /* check ar magic */ fread(ar_magic, 1, 8, deb_stream); if (strncmp(ar_magic,"!<arch>",7) != 0) { |