diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2010-07-18 14:51:45 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2010-09-05 13:55:08 +0200 |
commit | 817328eea788c746131cf151b64fd250200da333 (patch) | |
tree | e63042448ea1d87c5688743d437e97bd44e5ea70 /debug/vdprintf_chk.c | |
parent | 29fddf61b28e57265b5c5f7be2b42bb73906ae53 (diff) | |
download | glibc-817328eea788c746131cf151b64fd250200da333.zip glibc-817328eea788c746131cf151b64fd250200da333.tar.gz glibc-817328eea788c746131cf151b64fd250200da333.tar.bz2 |
Remove undefined operations
Diffstat (limited to 'debug/vdprintf_chk.c')
-rw-r--r-- | debug/vdprintf_chk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/debug/vdprintf_chk.c b/debug/vdprintf_chk.c index 8f3d332..adb6026 100644 --- a/debug/vdprintf_chk.c +++ b/debug/vdprintf_chk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1997-2000, 2001, 2002, 2003, 2006, 2008 +/* Copyright (C) 1995, 1997-2000, 2001, 2002, 2003, 2006, 2008, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -50,10 +50,10 @@ __vdprintf_chk (int d, int flags, const char *format, va_list arg) INTUSE(_IO_un_link) (&tmpfil); return EOF; } - tmpfil.file._IO_file_flags = - (_IO_mask_flags (&tmpfil.file, _IO_NO_READS, - _IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING) - | _IO_DELETE_DONT_CLOSE); + tmpfil.file._flags |= _IO_DELETE_DONT_CLOSE; + + _IO_mask_flags (&tmpfil.file, _IO_NO_READS, + _IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING); /* For flags > 0 (i.e. __USE_FORTIFY_LEVEL > 1) request that %n can only come from read-only format strings. */ |