Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-07-01 19:45:20 +0400
committerChristopher Faylor <me@cgf.cx>2000-07-01 19:45:20 +0400
commit51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b (patch)
tree00ce64760366e554d27bd2100958c1c89d95fa45 /winsup/cygwin/binmode.c
parent44cac4112164ac91fe00e3acf0dd1c567a937313 (diff)
* binmode.c (cygwin_premain0): Fix erroneous clearing of bit.
* textmode.c (cygwin_premain0): Ditto.
Diffstat (limited to 'winsup/cygwin/binmode.c')
-rw-r--r--winsup/cygwin/binmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/binmode.c b/winsup/cygwin/binmode.c
index b49842032..afc885441 100644
--- a/winsup/cygwin/binmode.c
+++ b/winsup/cygwin/binmode.c
@@ -14,6 +14,6 @@ extern int _fmode;
void
cygwin_premain0(int argc, char **argv)
{
- _fmode &= _O_TEXT;
+ _fmode &= ~_O_TEXT;
_fmode |= _O_BINARY;
}