summaryrefslogtreecommitdiff
path: root/TAO/tao/ORB.cpp
diff options
context:
space:
mode:
authorolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-02-26 13:48:30 +0000
committerolli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-02-26 13:48:30 +0000
commit3d257af9420072df6193f5d6e54c43cf1915542f (patch)
treef46177a86ae39a5de620b5a7f83d84762ae03a47 /TAO/tao/ORB.cpp
parent880d9725fade799ad1de578a4eac78fe1cab39fc (diff)
downloadATCD-3d257af9420072df6193f5d6e54c43cf1915542f.tar.gz
ChangeLogTag: Mon Feb 26 13:43:45 UTC 2007 Olli Savia <ops@iki.fi>
Diffstat (limited to 'TAO/tao/ORB.cpp')
-rw-r--r--TAO/tao/ORB.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp
index 7e8b13cc2e7..46a74c5d45f 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -853,13 +853,10 @@ CORBA::ORB::resolve_service (TAO::MCAST_SERVICEID mcast_service_id)
static char const mcast_fmt[] = "mcast://:%d::";
static size_t const PORT_BUF_SIZE = 256;
- char def_init_ref[PORT_BUF_SIZE] = { 0 }; // snprintf() doesn't
- // null terminate.
- // Make sure we do.
+ char def_init_ref[PORT_BUF_SIZE] = { 0 };
ACE_OS::snprintf (def_init_ref,
- PORT_BUF_SIZE - 1, // Account for null
- // terminator.
+ PORT_BUF_SIZE,
mcast_fmt,
port);