From: Guilherme Maciel Ferreira Date: Thu, 1 Sep 2011 02:05:02 +0000 (-0300) Subject: Added a note about a TODO fix X-Git-Tag: v1.2~64 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=796e6368913e37c99a3f27645e763dea9e61bda7;p=pingcheck Added a note about a TODO fix --- 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 );