diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-11 15:49:35 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-11 15:49:35 +0000 |
commit | afa9a9721243f979d8656fd84246d2e4e5e4cc15 (patch) | |
tree | 414d2a82fa6c95f1e800cef1638c485cb76d1082 /ace/INET_Addr.cpp | |
parent | 89caede6a95356377a4bf91b222cd1a9cfe96a48 (diff) | |
download | ATCD-afa9a9721243f979d8656fd84246d2e4e5e4cc15.tar.gz |
ChangeLogTag:Thu Sep 11 10:37:00 1997 Carlos O'Ryan <coryan@polka.cs.wustl.edu>
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r-- | ace/INET_Addr.cpp | 7 |
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)); } |