Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62952 - trunk/boost/iostreams/filter
From: steven_at_[hidden]
Date: 2010-06-14 17:42:27


Author: steven_watanabe
Date: 2010-06-14 17:42:23 EDT (Mon, 14 Jun 2010)
New Revision: 62952
URL: http://svn.boost.org/trac/boost/changeset/62952

Log:
Don't end the stream produced by a reading through a symmetric_filter prematurely. Fixes #2318.
Text files modified:
   trunk/boost/iostreams/filter/symmetric.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/iostreams/filter/symmetric.hpp
==============================================================================
--- trunk/boost/iostreams/filter/symmetric.hpp (original)
+++ trunk/boost/iostreams/filter/symmetric.hpp 2010-06-14 17:42:23 EDT (Mon, 14 Jun 2010)
@@ -202,7 +202,7 @@
             return f_eof;
         }
         buf().set(0, amt);
- return amt == buf().size() ? f_good : f_would_block;
+ return amt != 0 ? f_good : f_would_block;
     }
 
     // Attempts to write the contents of the buffer the given Sink.


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk