diff options
Diffstat (limited to 'debug')
-rw-r--r-- | debug/vdprintf_chk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/debug/vdprintf_chk.c b/debug/vdprintf_chk.c index 8f3d332a40..e65fbe802c 100644 --- a/debug/vdprintf_chk.c +++ b/debug/vdprintf_chk.c @@ -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. */ |