diff options
author | gokhale <asgokhale@users.noreply.github.com> | 1997-11-12 20:41:52 +0000 |
---|---|---|
committer | gokhale <asgokhale@users.noreply.github.com> | 1997-11-12 20:41:52 +0000 |
commit | bf0bb34fe261cc8c57ace2e331c01ef493dbd6ea (patch) | |
tree | bd47808ea3d1c53e1cd0cbcdd00d23ce1bd4e122 | |
parent | f1ac415223df36b835238df39dc02f3340129b99 (diff) | |
download | ATCD-bf0bb34fe261cc8c57ace2e331c01ef493dbd6ea.tar.gz |
signature change in _get_name
CVS:
CVS:
CVS:
CVS:
CVS:
CVS:
CVS:
CVS:
-rw-r--r-- | TAO/tao/iiopobj.cpp | 5 | ||||
-rw-r--r-- | TAO/tao/iiopobj.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/TAO/tao/iiopobj.cpp b/TAO/tao/iiopobj.cpp index e9674c5b7b4..e249363ad91 100644 --- a/TAO/tao/iiopobj.cpp +++ b/TAO/tao/iiopobj.cpp @@ -178,9 +178,10 @@ IIOP_Object::QueryInterface (REFIID riid, //TAO extensions const char *IIOP_Object::_get_name (CORBA::Environment &) { - char name [TAO_MAXBUFSIZE]; + char *name; - ACE_OS::memset (name, '\0', TAO_MAXBUFSIZE); + name = CORBA::string_alloc (this->profile.object_key.length); + ACE_OS::memset (name, '\0', this->profile.object_key.length+1); ACE_OS::memcpy (name, this->profile.object_key.buffer, this->profile.object_key.length); return name; diff --git a/TAO/tao/iiopobj.h b/TAO/tao/iiopobj.h index a8129c862e4..eb333396177 100644 --- a/TAO/tao/iiopobj.h +++ b/TAO/tao/iiopobj.h @@ -162,7 +162,7 @@ public: HRESULT __stdcall QueryInterface (REFIID type_id, void **ppv); - virtual const char *_get_name (CORBA::Environment &env); + virtual char *_get_name (CORBA::Environment &env); // get the underlying key private: |