diff options
| author | Andreas Schwab <schwab@redhat.com> | 2010-05-14 11:15:22 +0200 |
|---|---|---|
| committer | Andreas Schwab <schwab@redhat.com> | 2010-05-14 13:13:53 +0200 |
| commit | e9691db5366a2990ccebf157c757ae60258b46d6 (patch) | |
| tree | f17aa7f144b1acde14902700a13f95055bab6c70 /libio | |
| parent | 5e6e747fa224df1159f7eb32bc26d44cad0dbb17 (diff) | |
| parent | 6d270188ef3fe10125b8723ed69ebdc9e90e914e (diff) | |
| download | glibc-e9691db5366a2990ccebf157c757ae60258b46d6.tar.xz glibc-e9691db5366a2990ccebf157c757ae60258b46d6.zip | |
Merge remote branch 'origin/release/2.11/master' into fedora/2.11/master
Diffstat (limited to 'libio')
| -rw-r--r-- | libio/iovdprintf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libio/iovdprintf.c b/libio/iovdprintf.c index edab849a44..5284ff8938 100644 --- a/libio/iovdprintf.c +++ b/libio/iovdprintf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1997-2000, 2001, 2002, 2003, 2006 +/* Copyright (C) 1995, 1997-2000, 2001, 2002, 2003, 2006, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -60,6 +60,9 @@ _IO_vdprintf (d, format, arg) done = INTUSE(_IO_vfprintf) (&tmpfil.file, format, arg); + if (done != EOF && _IO_do_flush (&tmpfil.file) == EOF) + done = EOF; + _IO_FINISH (&tmpfil.file); return done; |
