diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-01 22:28:13 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-01 22:28:13 +0000 |
commit | d6aec8619d1713f90dba9999fa8dc52976aad1bd (patch) | |
tree | a52e86b79481e00a40451f46d83ada63e2a8c120 /archival | |
parent | 9ef09444568cc15c719daec8d8b6bc38776b770e (diff) | |
download | busybox-d6aec8619d1713f90dba9999fa8dc52976aad1bd.tar.gz |
Allow short reads when filling compress buffer
Diffstat (limited to 'archival')
-rw-r--r-- | archival/libunarchive/decompress_uncompress.c | 2 | ||||
-rw-r--r-- | archival/libunarchive/uncompress.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c index 949e27df1..02835cfce 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 949e27df1..02835cfce 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; } |