From: Glenn L McGrath Date: Fri, 1 Nov 2002 22:28:13 +0000 (-0000) Subject: Allow short reads when filling compress buffer X-Git-Tag: 1_00_pre1~493 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d6aec8619d1713f90dba9999fa8dc52976aad1bd;p=oweals%2Fbusybox.git Allow short reads when filling compress buffer --- 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; }