summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-03-08 21:19:50 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-03-08 21:19:50 +0000
commit01e90e544dcff391b915dce5ee8fd9f1df0aac85 (patch)
tree5a82a5c9585393dbad46f42794f3547e66185fad
parentf11ec41ba0e45304246c459c135a14035065d178 (diff)
downloadATCD-01e90e544dcff391b915dce5ee8fd9f1df0aac85.tar.gz
.
-rw-r--r--TAO/tao/ORB.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp
index fead44b31e8..017a99745d6 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -969,8 +969,7 @@ CORBA::string_copy (const CORBA::Char *str)
// This allocates an extra byte for the '\0';
CORBA::String copy = CORBA::string_alloc (len);
- ACE_OS::memcpy (copy, str, len);
- copy[len] = '\0';
+ ACE_OS::memcpy (copy, str, len + 1);
return copy;
}