diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2007-01-05 13:19:51 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2007-01-05 13:19:51 +0000 |
commit | fa86a332804dcc80c64e5c3e86669c5d01cec995 (patch) | |
tree | 167150b50f48c459aea96c8e41774c171021e05a | |
parent | 8cf1727754ed9f0f0eb7ecde157298f4c7dd41ee (diff) | |
download | ATCD-fa86a332804dcc80c64e5c3e86669c5d01cec995.tar.gz |
Fri Jan 5 13:07:32 UTC 2007 Phil Mesnier <mesnier_p@ociweb.com>
-rw-r--r-- | TAO/ChangeLog | 10 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index f425cacdd4f..cad02f3e294 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,13 @@ +Fri Jan 5 13:07:32 UTC 2007 Phil Mesnier <mesnier_p@ociweb.com> + + * orbsvcs/tests/EC_Mcast/EC_Mcast.cpp (open_senders): + + Switched from using a macro for the buffer length used in + gathering the ingore address as a string to using a literal + constant. This is consistent with common usage of addr_to_string + throughout the ACE/TAO codebase, and avoids adding potentially + system-specific includes at the application level. + Fri Jan 5 13:04:18 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> * tests/OBV/ValueBox/client.cpp: diff --git a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp index 2fb6e45e455..ceb4108095b 100644 --- a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp +++ b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp @@ -269,8 +269,8 @@ ECM_Driver::open_senders (RtecEventChannelAdmin::EventChannel_ptr ec ACE_INET_Addr ignore_from; this->endpoint_.dgram ().get_local_addr (ignore_from); - ACE_TCHAR buffer[MAXHOSTNAMELEN+16]; - ignore_from.addr_to_string (buffer,MAXHOSTNAMELEN+16); + ACE_TCHAR buffer[256]; + ignore_from.addr_to_string (buffer,256); ACE_DEBUG ((LM_DEBUG, "(%P) ECM_Driver::open_senders - " "local endpoint = (%s)\n", ACE_TEXT_ALWAYS_CHAR (buffer))); |