summaryrefslogtreecommitdiff
path: root/ace/Service_Object.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-01-04 00:06:38 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-01-04 00:06:38 +0000
commit70d108545611dbb86049d0109ef4a7ab1ef6289e (patch)
tree790c9b07d5eac35a82ae7d9f5e7b59a6243a4b2c /ace/Service_Object.i
parent1c44106287219a05ddbff09df4574b90777040ae (diff)
downloadATCD-70d108545611dbb86049d0109ef4a7ab1ef6289e.tar.gz
foo
Diffstat (limited to 'ace/Service_Object.i')
-rw-r--r--ace/Service_Object.i6
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/Service_Object.i b/ace/Service_Object.i
index 530757b6363..e85fd0323bb 100644
--- a/ace/Service_Object.i
+++ b/ace/Service_Object.i
@@ -21,6 +21,8 @@ ACE_INLINE void
ACE_Service_Type::name (const char *n)
{
ACE_TRACE ("ACE_Service_Type::name");
- this->name_ = n;
-}
+ delete [] (char *) this->name_;
+ ACE_NEW (this->name_, char[::strlen (n) + 1]);
+ ACE_OS::strcpy ((char *) this->name_, n);
+}