summaryrefslogtreecommitdiff
path: root/netsvcs/lib
diff options
context:
space:
mode:
Diffstat (limited to 'netsvcs/lib')
-rw-r--r--netsvcs/lib/Server_Logging_Handler_T.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/netsvcs/lib/Server_Logging_Handler_T.cpp b/netsvcs/lib/Server_Logging_Handler_T.cpp
index b9890d8cb54..4f63edbe447 100644
--- a/netsvcs/lib/Server_Logging_Handler_T.cpp
+++ b/netsvcs/lib/Server_Logging_Handler_T.cpp
@@ -160,14 +160,11 @@ ACE_Server_Logging_Handler_T<ACE_PEER_STREAM_2, COUNTER, ACE_SYNCH_USE, LMR>::op
-1);
#if !defined (ACE_HAS_BROKEN_HPUX_TEMPLATES) && !defined (__GNUG__)
- this->receiver_.m_ = ACE_CString (client_addr.get_host_name (),
- MAXHOSTNAMELEN + 1);
+ this->receiver_.m_ = ACE_CString (client_addr.get_host_name ());
#else
- this->host_name_ = ACE_CString (client_addr.get_host_name (),
- MAXHOSTNAMELEN + 1);
+ this->host_name_ = ACE_CString (client_addr.get_host_name ());
#endif /* ! ACE_HAS_BROKEN_HPUX_TEMPLATES && ! __GNUG__ */
-
ACE_DEBUG ((LM_DEBUG,
"(%t) accepted connection from host %s on fd %d\n",
client_addr.get_host_name (),