From 796e6368913e37c99a3f27645e763dea9e61bda7 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Wed, 31 Aug 2011 23:05:02 -0300 Subject: [PATCH] Added a note about a TODO fix --- src/host/messagepayload.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/host/messagepayload.cpp b/src/host/messagepayload.cpp index 743cc34..801a9f8 100644 --- a/src/host/messagepayload.cpp +++ b/src/host/messagepayload.cpp @@ -76,6 +76,8 @@ MessagePayload& MessagePayload::operator=( const MessagePayload &other ) BOOST_ASSERT( Payload.get() != NULL ); BOOST_ASSERT( other.Payload.get() != NULL ); + // FIXME must resize the Payload in order to work + copy( other.Payload.get(), other.Payload.get() + PayloadSizeInBytes, Payload.get() ); BOOST_ASSERT( PayloadSizeInBytes == other.PayloadSizeInBytes ); -- 1.7.1