aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-12-22 21:02:41 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-12-22 21:02:41 +0000
commit334dc65c929ee900bf99b1c2b53d1893df3bc95e (patch)
treed2e9dd2cb141b551d889e9051de3a963d2935044 /archival/libunarchive
parenta120c32cfa1437a5643ce1f58a285854e4d47ab2 (diff)
downloadbusybox-334dc65c929ee900bf99b1c2b53d1893df3bc95e.tar.gz
Fix a bug of mine where extracting files to stdout would extract to
much, modified patch from Bastian Blank
Diffstat (limited to 'archival/libunarchive')
-rw-r--r--archival/libunarchive/data_extract_to_stdout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/data_extract_to_stdout.c b/archival/libunarchive/data_extract_to_stdout.c
index ce5d4b8d0..7c4e7c78b 100644
--- a/archival/libunarchive/data_extract_to_stdout.c
+++ b/archival/libunarchive/data_extract_to_stdout.c
@@ -18,5 +18,5 @@
extern void data_extract_to_stdout(archive_handle_t *archive_handle)
{
- bb_copyfd_eof(archive_handle->src_fd, fileno(stdout));
+ bb_copyfd_size(archive_handle->src_fd, fileno(stdout), archive_handle->file_header->size);
}