bug fix
This commit is contained in:
parent
132ed11e0e
commit
212579440e
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue