summaryrefslogtreecommitdiff
path: root/archival/libunarchive/decompress_uncompress.c
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/decompress_uncompress.c
parent9ef09444568cc15c719daec8d8b6bc38776b770e (diff)
downloadbusybox-d6aec8619d1713f90dba9999fa8dc52976aad1bd.zip
busybox-d6aec8619d1713f90dba9999fa8dc52976aad1bd.tar.gz
Allow short reads when filling compress buffer
Diffstat (limited to 'archival/libunarchive/decompress_uncompress.c')
-rw-r--r--archival/libunarchive/decompress_uncompress.c2
1 files changed, 1 insertions, 1 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;
}