From d6aec8619d1713f90dba9999fa8dc52976aad1bd Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 1 Nov 2002 22:28:13 +0000 Subject: Allow short reads when filling compress buffer --- archival/libunarchive/decompress_uncompress.c | 2 +- archival/libunarchive/uncompress.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'archival/libunarchive') 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; } -- cgit v1.2.3