From 9c66633bd604b742003b0ecef308ece060199e79 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@647990 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/framing/StructHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/framing/StructHelper.h b/qpid/cpp/src/qpid/framing/StructHelper.h index ad6ba89906..e3dce4f5ec 100644 --- a/qpid/cpp/src/qpid/framing/StructHelper.h +++ b/qpid/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