Allow short reads when filling compress buffer
This commit is contained in:
parent
9ef0944456
commit
d6aec8619d
@ -171,7 +171,7 @@ resetbuf: ;
|
|||||||
|
|
||||||
if (insize < (int) sizeof(inbuf)-IBUFSIZ)
|
if (insize < (int) sizeof(inbuf)-IBUFSIZ)
|
||||||
{
|
{
|
||||||
xread_all(fd_in, inbuf+insize, IBUFSIZ);
|
rsize = read(fd_in, inbuf+insize, IBUFSIZ);
|
||||||
insize += rsize;
|
insize += rsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ resetbuf: ;
|
|||||||
|
|
||||||
if (insize < (int) sizeof(inbuf)-IBUFSIZ)
|
if (insize < (int) sizeof(inbuf)-IBUFSIZ)
|
||||||
{
|
{
|
||||||
xread_all(fd_in, inbuf+insize, IBUFSIZ);
|
rsize = read(fd_in, inbuf+insize, IBUFSIZ);
|
||||||
insize += rsize;
|
insize += rsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user