diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-01-21 19:49:58 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-01-21 19:49:58 +0000 |
commit | 54b3d6d6e7d068c48a3a5b3cbe46991780962a96 (patch) | |
tree | 9b4f811ff35e6148cfa694fe15ecc0ce28a31d07 /TAO/tao/CDR.cpp | |
parent | ee49a15ead5eccccff4e4d5e5210679d67bd471a (diff) | |
download | ATCD-54b3d6d6e7d068c48a3a5b3cbe46991780962a96.tar.gz |
ChangeLogTag:Thu Jan 21 10:57:25 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/CDR.cpp')
-rw-r--r-- | TAO/tao/CDR.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/tao/CDR.cpp b/TAO/tao/CDR.cpp index 27d438e665a..3e1bb59fbd9 100644 --- a/TAO/tao/CDR.cpp +++ b/TAO/tao/CDR.cpp @@ -544,12 +544,15 @@ TAO_OutputCDR::write_octet_array_mb (const ACE_Message_Block* mb) continue; } - ACE_Message_Block* cont = ACE_Message_Block::duplicate (i); + ACE_Message_Block* cont = + new ACE_Message_Block (i->data_block ()->duplicate ()); if (cont != 0) { cont->cont (this->current_->cont ()); this->current_->cont (cont); this->current_ = cont; + cont->rd_ptr (i->rd_ptr ()); + cont->wr_ptr (i->wr_ptr ()); } else { |