This commit is contained in:
ceriel 1987-01-28 14:38:38 +00:00
parent 132ed11e0e
commit 212579440e

View file

@ -6,7 +6,9 @@ FILE *iop;
{
int count, c1;
if ( io_testflag(iop,IO_UNBUFF) || !io_testflag(iop,IO_WRITEMODE) )
if (!iop->_buf ||
io_testflag(iop,IO_UNBUFF) ||
!io_testflag(iop,IO_WRITEMODE) )
return(0);
count = BUFSIZ - iop->_count;