diff options
Diffstat (limited to 'cpp/src/tests/HeaderTest.cpp')
-rw-r--r-- | cpp/src/tests/HeaderTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/HeaderTest.cpp b/cpp/src/tests/HeaderTest.cpp index c3b64419ed..33bf705e65 100644 --- a/cpp/src/tests/HeaderTest.cpp +++ b/cpp/src/tests/HeaderTest.cpp @@ -39,7 +39,7 @@ QPID_AUTO_TEST_CASE(testGenericProperties) Buffer rbuffer(buff, 100); AMQHeaderBody body2; - body2.decode(rbuffer, body.size()); + body2.decode(rbuffer, body.encodedSize()); MessageProperties* props = body2.get<MessageProperties>(true); BOOST_CHECK_EQUAL( |