aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-12-05 02:51:21 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-12-05 02:51:21 +0000
commit142abc18ce4d14d2b2671edc7baedac4275c3d03 (patch)
treefec56d089c83b3f591afdd8ba90b6021cc64e20f /archival
parent22e1ca382be38c2f4566925de25f3c749dd44232 (diff)
downloadbusybox-142abc18ce4d14d2b2671edc7baedac4275c3d03.tar.gz
Fix a compile error when only using ar, patch by Paul van Gool
Diffstat (limited to 'archival')
-rw-r--r--archival/ar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/ar.c b/archival/ar.c
index 32ecd5736..1cb418ab4 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -59,7 +59,7 @@ static void data_extract_regular_file(archive_handle_t *archive_handle)
file_header = archive_handle->file_header;
dst_fd = bb_xopen(file_header->name, O_WRONLY | O_CREAT);
- bb_copyfd_eof(archive_handle->src_fd, dst_fd, file_header->size);
+ bb_copyfd_size(archive_handle->src_fd, dst_fd, file_header->size);
close(dst_fd);
chmod(file_header->name, file_header->mode);