diff options
author | Ulrich Drepper <drepper@gcc.gnu.org> | 2000-05-24 07:06:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@gcc.gnu.org> | 2000-05-24 07:06:07 +0000 |
commit | d027507ed8f21aae9fc2c97d766b05d57b3e3cbc (patch) | |
tree | 0dddf7395353e20669384205a1588ee9385e532e /libio | |
parent | 3c56b105508aeab3a54adb1cee8a962e3d218019 (diff) | |
download | gcc-d027507ed8f21aae9fc2c97d766b05d57b3e3cbc.zip gcc-d027507ed8f21aae9fc2c97d766b05d57b3e3cbc.tar.gz gcc-d027507ed8f21aae9fc2c97d766b05d57b3e3cbc.tar.bz2 |
(endl): Fix bug in last change.
(ends): Make same change as for endl.
From-SVN: r34128
Diffstat (limited to 'libio')
-rw-r--r-- | libio/iostream.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/iostream.cc b/libio/iostream.cc index cabda6b..31fafcb 100644 --- a/libio/iostream.cc +++ b/libio/iostream.cc @@ -957,13 +957,14 @@ int istream::_skip_ws() ostream& ends(ostream& outs) { - outs.put('\0'); + if (outs.opfx()) + outs.put('\0'); return outs; } ostream& endl(ostream& outs) { - if (opfx) + if (outs.opfx()) flush(outs.put('\n')); return outs; } |