diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-12-23 00:02:41 +0300 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-12-23 00:02:41 +0300 |
commit | 334dc65c929ee900bf99b1c2b53d1893df3bc95e (patch) | |
tree | d2e9dd2cb141b551d889e9051de3a963d2935044 /archival/libunarchive/data_extract_to_stdout.c | |
parent | a120c32cfa1437a5643ce1f58a285854e4d47ab2 (diff) |
Fix a bug of mine where extracting files to stdout would extract to
much, modified patch from Bastian Blank
Diffstat (limited to 'archival/libunarchive/data_extract_to_stdout.c')
-rw-r--r-- | archival/libunarchive/data_extract_to_stdout.c | 2 |
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); } |