Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79518 - trunk/boost/asio
From: chris_at_[hidden]
Date: 2012-07-15 00:11:00


Author: chris_kohlhoff
Date: 2012-07-15 00:10:59 EDT (Sun, 15 Jul 2012)
New Revision: 79518
URL: http://svn.boost.org/trac/boost/changeset/79518

Log:
Fix another regression in buffered_write_stream. Refs #6310
Text files modified:
   trunk/boost/asio/buffered_write_stream.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/asio/buffered_write_stream.hpp
==============================================================================
--- trunk/boost/asio/buffered_write_stream.hpp (original)
+++ trunk/boost/asio/buffered_write_stream.hpp 2012-07-15 00:10:59 EDT (Sun, 15 Jul 2012)
@@ -232,7 +232,7 @@
           ? bytes_avail : space_avail;
         storage_.resize(orig_size + length);
         std::size_t bytes_copied = boost::asio::buffer_copy(
- storage_.data(), buffers_, length);
+ storage_.data() + orig_size, buffers_, length);
 
         io_service_.dispatch(detail::bind_handler(handler_, ec, bytes_copied));
       }


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