summaryrefslogtreecommitdiff
path: root/TAO/tao/Strategies/SHMIOP_Endpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Strategies/SHMIOP_Endpoint.cpp')
-rw-r--r--TAO/tao/Strategies/SHMIOP_Endpoint.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tao/Strategies/SHMIOP_Endpoint.cpp b/TAO/tao/Strategies/SHMIOP_Endpoint.cpp
index 911c1b14ad4..354172a95ca 100644
--- a/TAO/tao/Strategies/SHMIOP_Endpoint.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Endpoint.cpp
@@ -13,6 +13,7 @@
#endif /* __ACE_INLINE__ */
#include "ace/os_include/os_netdb.h"
+#include <cstring>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -129,7 +130,7 @@ TAO_SHMIOP_Endpoint::addr_to_string (char *buffer, size_t length)
size_t actual_len =
ACE_OS::strlen (this->host_.in ()) // chars in host name
+ sizeof (':') // delimiter
- + ACE_OS::strlen ("65536") // max port
+ + std::strlen ("65536") // max port
+ sizeof ('\0');
if (length < actual_len)