summaryrefslogtreecommitdiff
path: root/ace/INET_Addr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r--ace/INET_Addr.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp
index 91d4b146864..30fff2ce6a4 100644
--- a/ace/INET_Addr.cpp
+++ b/ace/INET_Addr.cpp
@@ -31,8 +31,11 @@ ACE_INET_Addr::dump (void) const
ACE_TRACE ("ACE_INET_Addr::dump");
ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
- char s[MAXNAMELEN];
- ACE_OS::sprintf (s, "%s:%d", this->get_host_addr (), this->get_port_number ());
+
+ char s[ACE_MAX_FULLY_QUALIFIED_NAME_LEN + 16];
+ ACE_OS::sprintf (s, "%s:%d",
+ this->get_host_addr (),
+ this->get_port_number ());
ACE_DEBUG ((LM_DEBUG, "%s", s));
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
}