summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2002-03-13 12:35:50 +0000
committerManuel Novoa III <mjn3@codepoet.org>2002-03-13 12:35:50 +0000
commit347b1fc3b66b3fcffdc9da6f928b0e6caaf9de9d (patch)
treebd864c3ff1637edb5352b82cf586b6adac5a6654 /libc/stdio/stdio.c
parente26e735ab43fd8018ad4ef149a4bb2b87ba14699 (diff)
Fix stdin/stdout initialization of buffering type. I had changed the
default static initiailization and forgotten to update _stdio_init().
Diffstat (limited to 'libc/stdio/stdio.c')
-rw-r--r--libc/stdio/stdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/stdio.c b/libc/stdio/stdio.c
index e54274112..1d89bb922 100644
--- a/libc/stdio/stdio.c
+++ b/libc/stdio/stdio.c
@@ -1773,8 +1773,8 @@ void _stdio_init(void)
{
#ifdef __STDIO_BUFFERS
/* stdin and stdout uses line buffering when connected to a tty. */
- _stdio_streams[0].modeflags ^= isatty(0) * __FLAG_LBF;
- _stdio_streams[1].modeflags ^= isatty(1) * __FLAG_LBF;
+ _stdio_streams[0].modeflags &= isatty(0) * __FLAG_LBF;
+ _stdio_streams[1].modeflags &= isatty(1) * __FLAG_LBF;
#endif /* __STDIO_BUFFERS */
#ifndef __UCLIBC__
/* __stdio_term is automatically when exiting if stdio is used.