fixed bug

This commit is contained in:
ceriel 1987-06-12 19:10:12 +00:00
parent 1e5688a10e
commit 02044d1d3f

View file

@ -8,11 +8,11 @@ FILE *freopen(name,mode,fp)
char *name , *mode;
FILE *fp;
{
FILE *fp;
char *malloc();
int fd,
flags = 0;
fflush(fp);
close(fileno(fp));
if (io_testflag(fp, IO_MYBUF) && fp->_buf) free(fp->_buf);