previous fix was wrong; added another

This commit is contained in:
ceriel 1987-09-02 12:52:44 +00:00
parent c93f6d9fb1
commit 93eba2874d

View file

@ -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);