summaryrefslogtreecommitdiff
path: root/TAO/tao/decode.cpp
diff options
context:
space:
mode:
authorgokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-15 21:54:11 +0000
committergokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-15 21:54:11 +0000
commiteaab8eec36880ac5e0ffaa14dcff3b99d3cf6683 (patch)
tree1696acab8bf902711bb3727f874a00c1970a9d0e /TAO/tao/decode.cpp
parent3003641e0dc94e1544d687f788e83fb171e9e81c (diff)
downloadATCD-eaab8eec36880ac5e0ffaa14dcff3b99d3cf6683.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/tao/decode.cpp')
-rw-r--r--TAO/tao/decode.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/tao/decode.cpp b/TAO/tao/decode.cpp
index cd3d0e0c7ec..a344f721221 100644
--- a/TAO/tao/decode.cpp
+++ b/TAO/tao/decode.cpp
@@ -171,7 +171,8 @@ TAO_Marshal_Any::decode (CORBA::TypeCode_ptr,
== CORBA::TypeCode::TRAVERSE_CONTINUE)
{
// Let the Any maintain a pointer to the CDR stream
- any->value_ = (ACE_Message_Block *) stream->start ();
+ any->value_ = ACE_Message_Block::duplicate ((ACE_Message_Block *)
+ stream->start ());
any->any_owns_data_ = 1;
elem_tc->AddRef ();
any->type_ = elem_tc;
@@ -415,7 +416,7 @@ TAO_Marshal_Principal::decode (CORBA::TypeCode_ptr,
CORBA::TypeCode::TRAVERSE_CONTINUE);
(*pp)->id.length (len);
- continue_decoding =
+ continue_decoding =
stream->read_octet_array ((*pp)->id.get_buffer (), len);
}