Allow short reads when filling compress buffer

This commit is contained in:
Glenn L McGrath 2002-11-01 22:28:13 +00:00
parent 9ef0944456
commit d6aec8619d
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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;
}