From 334dc65c929ee900bf99b1c2b53d1893df3bc95e Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 22 Dec 2003 21:02:41 +0000 Subject: Fix a bug of mine where extracting files to stdout would extract to much, modified patch from Bastian Blank --- archival/libunarchive/data_extract_to_stdout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival') 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); } -- cgit v1.2.3