summaryrefslogtreecommitdiff
path: root/ace/Message_Block.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-13 20:39:13 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-03-13 20:39:13 +0000
commitc7d84a4ef4cd4c16a621ec5c2d4388b7ab52b7a6 (patch)
treec0c1f61276576c7783608f9d85f3b85640693e86 /ace/Message_Block.cpp
parent990a5b1d262994b325bef2ab878f755a6b654f02 (diff)
downloadATCD-c7d84a4ef4cd4c16a621ec5c2d4388b7ab52b7a6.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Message_Block.cpp')
-rw-r--r--ace/Message_Block.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/Message_Block.cpp b/ace/Message_Block.cpp
index a95d4ce2501..16608d358c7 100644
--- a/ace/Message_Block.cpp
+++ b/ace/Message_Block.cpp
@@ -126,13 +126,13 @@ ACE_Data_Block::size (size_t length)
(char *) this->allocator_strategy_->malloc (length),
-1);
+ ACE_OS::memcpy (buf, this->base_, this->cur_size_);
if (ACE_BIT_DISABLED (this->flags_, ACE_Message_Block::DONT_DELETE))
this->allocator_strategy_->free ((void *) this->base_);
else
// We now assume ownership.
ACE_CLR_BITS (this->flags_, ACE_Message_Block::DONT_DELETE);
- ACE_OS::memcpy (buf, this->base_, this->cur_size_);
this->max_size_ = length;
this->cur_size_ = length;
this->base_ = buf;