From 02fcd2d2df00ec2e79f1cc30c7a7badb60548671 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 15 Nov 2002 21:58:30 +0000 Subject: Allow short reads as we are looping anyway. --- archival/libunarchive/archive_copy_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archival/libunarchive') diff --git a/archival/libunarchive/archive_copy_file.c b/archival/libunarchive/archive_copy_file.c index 47d1a5216..faa8059ef 100644 --- a/archival/libunarchive/archive_copy_file.c +++ b/archival/libunarchive/archive_copy_file.c @@ -31,7 +31,8 @@ extern void archive_copy_file(const archive_handle_t *archive_handle, const int } else { size = chunksize; } - archive_xread_all(archive_handle, buffer, size); +// archive_xread_all(archive_handle, buffer, size); + size = archive_xread(archive_handle, buffer, size); if (write(dst_fd, buffer, size) != size) { error_msg_and_die ("Short write"); -- cgit v1.2.3