summaryrefslogtreecommitdiff
path: root/TAO/tao/corbafwd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/corbafwd.cpp')
-rw-r--r--TAO/tao/corbafwd.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/TAO/tao/corbafwd.cpp b/TAO/tao/corbafwd.cpp
index f71eaa5fa0a..7e2ef5c444e 100644
--- a/TAO/tao/corbafwd.cpp
+++ b/TAO/tao/corbafwd.cpp
@@ -6,11 +6,14 @@
# include "tao/corbafwd.i"
#endif /* ! __ACE_INLINE__ */
+#include "ace/OS.h"
-ACE_RCSID (tao,
- corbafwd,
+
+ACE_RCSID (tao,
+ corbafwd,
"$Id$")
+
char *
CORBA::string_dup (const char *str)
{
@@ -25,14 +28,14 @@ CORBA::string_dup (const char *str)
// This allocates an extra byte for the '\0';
char * copy = CORBA::string_alloc (len);
- // The memcpy() below assumes that the destination is a valid buffer.
+ // The memcpy() below assumes that the destination is a valid buffer.
if (copy == 0)
{
return 0;
}
- ACE_OS::memcpy (copy,
- str,
+ ACE_OS::memcpy (copy,
+ str,
len + 1);
return copy;
}
@@ -58,7 +61,7 @@ CORBA::wstring_dup (const WChar *const str)
return 0;
}
- return ACE_OS::wscpy (retval,
+ return ACE_OS::wscpy (retval,
str);
}