summaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-01 22:28:13 +0000
committerGlenn L McGrath2002-11-01 22:28:13 +0000
commitd6aec8619d1713f90dba9999fa8dc52976aad1bd (patch)
treea52e86b79481e00a40451f46d83ada63e2a8c120 /archival/libunarchive
parent9ef09444568cc15c719daec8d8b6bc38776b770e (diff)
downloadbusybox-d6aec8619d1713f90dba9999fa8dc52976aad1bd.zip
busybox-d6aec8619d1713f90dba9999fa8dc52976aad1bd.tar.gz
Allow short reads when filling compress buffer
Diffstat (limited to 'archival/libunarchive')
-rw-r--r--archival/libunarchive/decompress_uncompress.c2
-rw-r--r--archival/libunarchive/uncompress.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c
index 949e27d..02835cf 100644
--- a/archival/libunarchive/decompress_uncompress.c
+++ b/archival/libunarchive/decompress_uncompress.c
@@ -171,7 +171,7 @@ resetbuf: ;
if (insize < (int) sizeof(inbuf)-IBUFSIZ)
{
- xread_all(fd_in, inbuf+insize, IBUFSIZ);
+ rsize = read(fd_in, inbuf+insize, IBUFSIZ);
insize += rsize;
}
diff --git a/archival/libunarchive/uncompress.c b/archival/libunarchive/uncompress.c
index 949e27d..02835cf 100644
--- a/archival/libunarchive/uncompress.c
+++ b/archival/libunarchive/uncompress.c
@@ -171,7 +171,7 @@ resetbuf: ;
if (insize < (int) sizeof(inbuf)-IBUFSIZ)
{
- xread_all(fd_in, inbuf+insize, IBUFSIZ);
+ rsize = read(fd_in, inbuf+insize, IBUFSIZ);
insize += rsize;
}