Fix a bug of mine where extracting files to stdout would extract to

much, modified patch from Bastian Blank
This commit is contained in:
Glenn L McGrath 2003-12-22 21:02:41 +00:00
parent a120c32cfa
commit 334dc65c92

View File

@ -18,5 +18,5 @@
extern void data_extract_to_stdout(archive_handle_t *archive_handle) 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);
} }