Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58434 - sandbox/function/boost/function
From: dsaritz_at_[hidden]
Date: 2009-12-17 11:46:40


Author: psiha
Date: 2009-12-17 11:46:39 EST (Thu, 17 Dec 2009)
New Revision: 58434
URL: http://svn.boost.org/trac/boost/changeset/58434

Log:
Fixed a bug in the manager_trivial_heap::clone() member function.
Text files modified:
   sandbox/function/boost/function/function_base.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/function/boost/function/function_base.hpp
==============================================================================
--- sandbox/function/boost/function/function_base.hpp (original)
+++ sandbox/function/boost/function/function_base.hpp 2009-12-17 11:46:39 EST (Thu, 17 Dec 2009)
@@ -539,7 +539,7 @@
               std::size_t const storage_array_size( in_buffer.trivial_heap_obj.size );
               out_buffer.trivial_heap_obj.ptr = new storage_atom[ storage_array_size ];
               out_buffer.trivial_heap_obj.size = storage_array_size;
- std::memcpy( functor_ptr( out_buffer ), functor_ptr( in_buffer ), storage_array_size );
+ std::memcpy( functor_ptr( out_buffer ), functor_ptr( in_buffer ), storage_array_size * sizeof( storage_atom ) );
           }
 
           static void move( function_buffer & in_buffer, function_buffer & out_buffer )


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