Allow short reads when filling compress buffer
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 1 Nov 2002 22:28:13 +0000 (22:28 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 1 Nov 2002 22:28:13 +0000 (22:28 -0000)
archival/libunarchive/decompress_uncompress.c
archival/libunarchive/uncompress.c

index 949e27df10fe533853c39580bcd1659f79719db7..02835cfce67cb3f4fc59bb85374f2f09a14b30df 100644 (file)
@@ -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;
                }
 
index 949e27df10fe533853c39580bcd1659f79719db7..02835cfce67cb3f4fc59bb85374f2f09a14b30df 100644 (file)
@@ -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;
                }