fixed bug

This commit is contained in:
ceriel 1987-06-12 19:10:12 +00:00
parent 112ec23e08
commit c79e062121

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