Fix a compile error when only using ar, patch by Paul van Gool
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 5 Dec 2003 02:51:21 +0000 (02:51 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 5 Dec 2003 02:51:21 +0000 (02:51 -0000)
archival/ar.c

index 32ecd57364fccdf6764e56eca36acbcfcf60486a..1cb418ab4da3e347e442a8ba348e0f237329a825 100644 (file)
@@ -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);