summaryrefslogtreecommitdiff
path: root/archival/libunarchive/archive_xread.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libunarchive/archive_xread.c')
-rw-r--r--archival/libunarchive/archive_xread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/archive_xread.c b/archival/libunarchive/archive_xread.c
index 0b29dbf..d63d0d5 100644
--- a/archival/libunarchive/archive_xread.c
+++ b/archival/libunarchive/archive_xread.c
@@ -25,7 +25,7 @@ extern ssize_t archive_xread(const archive_handle_t *archive_handle, unsigned ch
ssize_t size;
size = archive_handle->read(archive_handle->src_fd, buf, count);
- if (size == -1) {
+ if (size < 0) {
bb_perror_msg_and_die("Read error");
}