From 3d257af9420072df6193f5d6e54c43cf1915542f Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 26 Feb 2007 13:48:30 +0000 Subject: ChangeLogTag: Mon Feb 26 13:43:45 UTC 2007 Olli Savia --- TAO/tao/ORB.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'TAO/tao/ORB.cpp') 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); -- cgit v1.2.1