diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-01-19 02:51:27 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-01-19 02:51:27 +0000 |
commit | 3875224075b7a967d3f1c69cf8b7806263bd5e22 (patch) | |
tree | 2996639d07b50c107fa13bfd38e08012a47d4026 /ace/Message_Block.cpp | |
parent | 6e40b6f889f6702e9a9b729fd8bbe21bde9b77dd (diff) | |
download | ATCD-3875224075b7a967d3f1c69cf8b7806263bd5e22.tar.gz |
.
Diffstat (limited to 'ace/Message_Block.cpp')
-rw-r--r-- | ace/Message_Block.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/Message_Block.cpp b/ace/Message_Block.cpp index 9a3d2f8d3a0..abc84cec0b8 100644 --- a/ace/Message_Block.cpp +++ b/ace/Message_Block.cpp @@ -108,15 +108,15 @@ ACE_Message_Block::copy (const char *buf) void ACE_Message_Block::crunch (void) { - if (this->rd_ptr () > this->base ()) - { + if (this->rd_ptr () > this->base ()) + { size_t len = this->length (); (void) ACE_OS::memmove (this->base (), this->rd_ptr (), len); this->rd_ptr (this->base ()); this->wr_ptr (this->base () + len); - } + } } void |