yet another fix in freopen: re-opening for reading did not work properly
This commit is contained in:
parent
e0a1824870
commit
04b0d45c13
@ -51,7 +51,7 @@ register FILE *fp;
|
||||
return NULL;
|
||||
}
|
||||
fp->_count = 0;
|
||||
if (fp->_buf) fp->_count = BUFSIZ;
|
||||
if (fp->_buf && (flags | IO_WRITEMODE)) fp->_count = BUFSIZ;
|
||||
fp->_fd = fd;
|
||||
fp->_flags = flags;
|
||||
return(fp);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user