diff options
author | Chris Cleeland <chris.cleeland@gmail.com> | 1998-02-16 23:46:08 +0000 |
---|---|---|
committer | Chris Cleeland <chris.cleeland@gmail.com> | 1998-02-16 23:46:08 +0000 |
commit | ad26b53ab847b365908f9f7c1e57c1cc73af3b35 (patch) | |
tree | 52df9e30ce9c44e307131d2713ddf5b8560f41e3 | |
parent | 1e90928cc4b909a10b25139113cb3f33e1dd3963 (diff) | |
download | ATCD-ad26b53ab847b365908f9f7c1e57c1cc73af3b35.tar.gz |
* tao/iioporb.cpp: Made sure to count separators when allocating
space for the IOR. This corrected ABW errors in purify.
* tao/connect.cpp: Explicitly set the buffer when being purified
to avoid complaints.
-rw-r--r-- | TAO/ChangeLog-98c | 8 | ||||
-rw-r--r-- | TAO/tao/iioporb.cpp | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c index fc1aa80bbd5..f5d16781ca7 100644 --- a/TAO/ChangeLog-98c +++ b/TAO/ChangeLog-98c @@ -1,3 +1,11 @@ +Mon Feb 16 17:38:15 1998 Chris Cleeland <cleeland@cs.wustl.edu> + + * tao/iioporb.cpp: Made sure to count separators when allocating + space for the IOR. This corrected ABW errors in purify. + + * tao/connect.cpp: Explicitly set the buffer when being purified + to avoid complaints. + Mon Feb 16 17:22:15 1998 Nagarajan Surendran <naga@tango.cs.wustl.edu> * tests/Cubit/TAO/IDL_Cubit/Makefile: Changed LDFLAGS to link orbsvcs diff --git a/TAO/tao/iioporb.cpp b/TAO/tao/iioporb.cpp index d6f9006c7e5..bb6a2af6ebf 100644 --- a/TAO/tao/iioporb.cpp +++ b/TAO/tao/iioporb.cpp @@ -101,8 +101,11 @@ IIOP_ORB::object_to_string (CORBA::Object_ptr obj, u_int buflen = (ACE_OS::strlen (iiop_prefix) + 1 /* major # */ + 1 /* minor # */ + + 2 /* double-slash separator */ + ACE_OS::strlen (obj2->profile.host) + + 1 /* colon separator */ + 5 /* port number */ + + 1 /* slash separator */ + ACE_OS::strlen (key) + 1 /* zero terminator */); CORBA::String buf = CORBA::string_alloc (buflen); |