From 8ae46d1e412f6c65869c8e1be9a8a68803769510 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 14 Apr 2008 20:34:30 +0000 Subject: Fix to struct32 encoding git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@647990 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/StructHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/framing/StructHelper.h') diff --git a/cpp/src/qpid/framing/StructHelper.h b/cpp/src/qpid/framing/StructHelper.h index ad6ba89906..e3dce4f5ec 100644 --- a/cpp/src/qpid/framing/StructHelper.h +++ b/cpp/src/qpid/framing/StructHelper.h @@ -34,7 +34,7 @@ class StructHelper public: template void encode(const T t, std::string& data) { - uint32_t size = t.size() + 2/*type*/; + uint32_t size = t.bodySize() + 2/*type*/; data.resize(size); Buffer wbuffer(const_cast(data.data()), size); wbuffer.putShort(T::TYPE); -- cgit v1.2.1