projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5780adb
)
Allow short reads as we are looping anyway.
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 15 Nov 2002 21:58:30 +0000
(21:58 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 15 Nov 2002 21:58:30 +0000
(21:58 -0000)
archival/libunarchive/archive_copy_file.c
patch
|
blob
|
history
diff --git
a/archival/libunarchive/archive_copy_file.c
b/archival/libunarchive/archive_copy_file.c
index 47d1a5216301ebc3e4c61d744316e578fa0ae17d..faa8059ef4d3a4941983aa6a72fdc56a729211d0 100644
(file)
--- 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");