mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
2.5-18.1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993,1995,1997-2001,2002,2004 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993,1995,1997-2002,2004,2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Written by Ulrich Drepper <drepper@cygnus.com>.
|
||||
Based on the single byte version by Per Bothner <bothner@cygnus.com>.
|
||||
@@ -115,14 +115,14 @@ _IO_wsetb (f, b, eb, a)
|
||||
wchar_t *eb;
|
||||
int a;
|
||||
{
|
||||
if (f->_wide_data->_IO_buf_base && !(f->_flags & _IO_USER_BUF))
|
||||
FREE_BUF (f->_wide_data->_IO_buf_base, _IO_wblen (f));
|
||||
if (f->_wide_data->_IO_buf_base && !(f->_flags2 & _IO_FLAGS2_USER_WBUF))
|
||||
FREE_BUF (f->_wide_data->_IO_buf_base, _IO_wblen (f) * sizeof (wchar_t));
|
||||
f->_wide_data->_IO_buf_base = b;
|
||||
f->_wide_data->_IO_buf_end = eb;
|
||||
if (a)
|
||||
f->_flags &= ~_IO_USER_BUF;
|
||||
f->_flags2 &= ~_IO_FLAGS2_USER_WBUF;
|
||||
else
|
||||
f->_flags |= _IO_USER_BUF;
|
||||
f->_flags2 |= _IO_FLAGS2_USER_WBUF;
|
||||
}
|
||||
INTDEF(_IO_wsetb)
|
||||
|
||||
@@ -198,7 +198,7 @@ _IO_wdefault_finish (fp, dummy)
|
||||
int dummy;
|
||||
{
|
||||
struct _IO_marker *mark;
|
||||
if (fp->_wide_data->_IO_buf_base && !(fp->_flags & _IO_USER_BUF))
|
||||
if (fp->_wide_data->_IO_buf_base && !(fp->_flags2 & _IO_FLAGS2_USER_WBUF))
|
||||
{
|
||||
FREE_BUF (fp->_wide_data->_IO_buf_base,
|
||||
_IO_wblen (fp) * sizeof (wchar_t));
|
||||
|
Reference in New Issue
Block a user