summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/StructHelper.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-04-14 20:34:30 +0000
committerGordon Sim <gsim@apache.org>2008-04-14 20:34:30 +0000
commit8ae46d1e412f6c65869c8e1be9a8a68803769510 (patch)
treef36b310b9af2aaef23510defe8406b59e1342e96 /cpp/src/qpid/framing/StructHelper.h
parentbe454984582db8163c7d88e20b07995f2ccdced8 (diff)
downloadqpid-python-8ae46d1e412f6c65869c8e1be9a8a68803769510.tar.gz
Fix to struct32 encoding
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@647990 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/StructHelper.h')
-rw-r--r--cpp/src/qpid/framing/StructHelper.h2
1 files changed, 1 insertions, 1 deletions
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 <class T> 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<char*>(data.data()), size);
wbuffer.putShort(T::TYPE);