diff options
Diffstat (limited to 'tar.c')
-rw-r--r-- | tar.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -284,6 +284,10 @@ extern int tar_main(int argc, char **argv) | |||
284 | /* unzip tarFd in a seperate process */ | 284 | /* unzip tarFd in a seperate process */ |
285 | if (unzipFlag == TRUE) { | 285 | if (unzipFlag == TRUE) { |
286 | comp_file = fdopen(tarFd, "r"); | 286 | comp_file = fdopen(tarFd, "r"); |
287 | |||
288 | /* set the buffer size */ | ||
289 | setvbuf(comp_file, NULL, _IOFBF, 0x8000); | ||
290 | |||
287 | if ((tarFd = fileno(gz_open(comp_file, &pid))) == EXIT_FAILURE) { | 291 | if ((tarFd = fileno(gz_open(comp_file, &pid))) == EXIT_FAILURE) { |
288 | error_msg_and_die("Couldnt unzip file"); | 292 | error_msg_and_die("Couldnt unzip file"); |
289 | } | 293 | } |