(_IO_acquire_lock_clear_flags2_fct): Also clear _IO_FLAGS2_SCANF_STD
authordrepper <drepper>
Tue, 18 Sep 2007 17:57:59 +0000 (17:57 +0000)
committerdrepper <drepper>
Tue, 18 Sep 2007 17:57:59 +0000 (17:57 +0000)
bit from _flags2.

(_IO_acquire_lock_clear_flags2_fct): Clear the _IO_FLAGS2_FORTIFY bit
from _flags2 rather than _flags.

libio/libioP.h

index b99b817..854f049 100644 (file)
@@ -974,7 +974,7 @@ __attribute__ ((__always_inline__))
 _IO_acquire_lock_clear_flags2_fct (_IO_FILE **p)
 {
   _IO_FILE *fp = *p;
-  fp->_flags &= ~_IO_FLAGS2_FORTIFY;
+  fp->_flags2 &= ~(_IO_FLAGS2_FORTIFY | _IO_FLAGS2_SCANF_STD);
   if ((fp->_flags & _IO_USER_LOCK) == 0)
     _IO_funlockfile (fp);
 }