summaryrefslogtreecommitdiff
path: root/cpp/common/framing/src/AMQHeaderBody.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/common/framing/src/AMQHeaderBody.cpp')
-rw-r--r--cpp/common/framing/src/AMQHeaderBody.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/common/framing/src/AMQHeaderBody.cpp b/cpp/common/framing/src/AMQHeaderBody.cpp
index 1fd387c5d5..dce5f1fd54 100644
--- a/cpp/common/framing/src/AMQHeaderBody.cpp
+++ b/cpp/common/framing/src/AMQHeaderBody.cpp
@@ -41,12 +41,12 @@ void qpid::framing::AMQHeaderBody::encode(Buffer& buffer) const {
properties->encode(buffer);
}
-void qpid::framing::AMQHeaderBody::decode(Buffer& buffer, u_int32_t size){
+void qpid::framing::AMQHeaderBody::decode(Buffer& buffer, u_int32_t bufSize){
u_int16_t classId = buffer.getShort();
weight = buffer.getShort();
contentSize = buffer.getLongLong();
createProperties(classId);
- properties->decode(buffer, size - 12);
+ properties->decode(buffer, bufSize - 12);
}
void qpid::framing::AMQHeaderBody::createProperties(int classId){