Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BZ #6719]
2008-07-08  Ulrich Drepper  <drepper@redhat.com>
	[BZ #6719]
	* libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
	when selecting fully-buffered stream.
	Patch by Wang Xin <wxinee@gmail.com>.
  • Loading branch information
Ulrich Drepper committed Jul 8, 2008
1 parent 80d4197 commit 38dc8fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
2008-07-08 Ulrich Drepper <drepper@redhat.com>

[BZ #6719]
* libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
when selecting fully-buffered stream.
Patch by Wang Xin <wxinee@gmail.com>.

2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>

* sysdeps/mach/hurd/open.c: Include <stdio.h>.
Expand Down
2 changes: 1 addition & 1 deletion libio/iosetvbuf.c
Expand Up @@ -45,7 +45,7 @@ _IO_setvbuf (fp, buf, mode, size)
switch (mode)
{
case _IOFBF:
fp->_IO_file_flags &= ~_IO_LINE_BUF|_IO_UNBUFFERED;
fp->_IO_file_flags &= ~(_IO_LINE_BUF|_IO_UNBUFFERED);
if (buf == NULL)
{
if (fp->_IO_buf_base == NULL)
Expand Down

0 comments on commit 38dc8fa

Please sign in to comment.