fixed bug
This commit is contained in:
parent
112ec23e08
commit
c79e062121
@ -8,11 +8,11 @@ FILE *freopen(name,mode,fp)
|
|||||||
char *name , *mode;
|
char *name , *mode;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
{
|
{
|
||||||
FILE *fp;
|
|
||||||
char *malloc();
|
char *malloc();
|
||||||
int fd,
|
int fd,
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
|
||||||
|
fflush(fp);
|
||||||
close(fileno(fp));
|
close(fileno(fp));
|
||||||
if (io_testflag(fp, IO_MYBUF) && fp->_buf) free(fp->_buf);
|
if (io_testflag(fp, IO_MYBUF) && fp->_buf) free(fp->_buf);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user