From 3f808ab33787044e149fb25d1c6c6c18811afde9 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Fri, 24 Aug 2007 00:19:12 +0000 Subject: [PATCH] Thrift: TMemoryBuffer::getAppendBufferToString fix. Summary: Same fix as getBufferAsString Blame Rev: 55988 Reviewed By: dreiss Test Plan: Thrift compiles. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665222 13f79535-47bb-0310-9956-ffa450edef68 --- lib/cpp/src/transport/TTransportUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cpp/src/transport/TTransportUtils.h b/lib/cpp/src/transport/TTransportUtils.h index 518969fa..1a409752 100644 --- a/lib/cpp/src/transport/TTransportUtils.h +++ b/lib/cpp/src/transport/TTransportUtils.h @@ -326,7 +326,7 @@ class TMemoryBuffer : public TTransport { if (buffer_ == NULL) { return; } - str.append((char*)buffer_, bufferSize_); + str.append((char*)buffer_, wPos_); } void resetBuffer() { -- 2.17.1