previous fix was wrong; added another
This commit is contained in:
parent
c93f6d9fb1
commit
93eba2874d
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ register FILE *fp;
|
|||
return NULL;
|
||||
}
|
||||
fp->_count = 0;
|
||||
if (fp->_buf && (flags | IO_WRITEMODE)) fp->_count = BUFSIZ;
|
||||
if (fp->_buf && !(flags & IO_UNBUFF) && (flags & IO_WRITEMODE))
|
||||
fp->_count = BUFSIZ;
|
||||
fp->_fd = fd;
|
||||
fp->_flags = flags;
|
||||
return(fp);
|
||||
|
|
Loading…
Reference in a new issue