From c1a0e9934fed2099c07ed04436fb716d04bb8fa1 Mon Sep 17 00:00:00 2001 From: tjr Date: Fri, 3 Jan 2003 12:27:19 +0000 Subject: Reset the stream orientation to 0 (unoriented) in freopen(), as required by the C standard. --- lib/libc/stdio/freopen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc') diff --git a/lib/libc/stdio/freopen.c b/lib/libc/stdio/freopen.c index b445b15..a22dedd 100644 --- a/lib/libc/stdio/freopen.c +++ b/lib/libc/stdio/freopen.c @@ -133,6 +133,7 @@ freopen(file, mode, fp) if (HASLB(fp)) FREELB(fp); fp->_lb._size = 0; + fp->_extra->orientation = 0; if (f < 0) { /* did not get it after all */ fp->_flags = 0; /* set it free */ -- cgit v1.1