summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2000-07-07 17:41:12 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2000-07-07 17:41:12 +0000
commit24427ad613f61155ace59cc78f05ef25e53cd536 (patch)
treea4a53ddf59c4a572570f0bb09754294af1d915d8
parent2dcd785278bbc199360bed11abb01f972fd6eecb (diff)
downloadATCD-24427ad613f61155ace59cc78f05ef25e53cd536.tar.gz
ChangeLogTag:Fri Jul 7 09:47:36 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
-rw-r--r--ChangeLog15
-rw-r--r--ChangeLogs/ChangeLog-02a15
-rw-r--r--ChangeLogs/ChangeLog-03a15
-rw-r--r--ace/ACE.cpp2
-rw-r--r--netsvcs/lib/Server_Logging_Handler_T.cpp7
5 files changed, 43 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index b4e64c0561b..d4bc90d412c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,19 @@
+Fri Jul 7 09:47:36 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
+
+ * netsvcs/lib/Server_Logging_Handler_T.cpp (open_common): Don't
+ pass in the length to the ACE_CString constructor -- just let is
+ copy what's already there. Thanks to Valery Arkhangorodsky
+ <valerya@servicesoft.com> for reporting this.
+
+ * ace/ACE.cpp (timestamp): Make sure to insert a NUL byte at the
+ end of yeartmp and timetmp. Thanks to David Levine and Purify
+ for reporting this.
+
Fri Jul 07 09:36:05 2000 David L. Levine <levine@cs.wustl.edu>
* examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp (handle_client):
- cast result of ACE_OS::getpid () to int, and print as an int,
- to avoid compiler warning about mismatched format specifier.
+ cast result of ACE_OS::getpid () to int, and print as an int, to
+ avoid compiler warning about mismatched format specifier.
Thu Jul 6 10:36:46 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index b4e64c0561b..d4bc90d412c 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,8 +1,19 @@
+Fri Jul 7 09:47:36 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
+
+ * netsvcs/lib/Server_Logging_Handler_T.cpp (open_common): Don't
+ pass in the length to the ACE_CString constructor -- just let is
+ copy what's already there. Thanks to Valery Arkhangorodsky
+ <valerya@servicesoft.com> for reporting this.
+
+ * ace/ACE.cpp (timestamp): Make sure to insert a NUL byte at the
+ end of yeartmp and timetmp. Thanks to David Levine and Purify
+ for reporting this.
+
Fri Jul 07 09:36:05 2000 David L. Levine <levine@cs.wustl.edu>
* examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp (handle_client):
- cast result of ACE_OS::getpid () to int, and print as an int,
- to avoid compiler warning about mismatched format specifier.
+ cast result of ACE_OS::getpid () to int, and print as an int, to
+ avoid compiler warning about mismatched format specifier.
Thu Jul 6 10:36:46 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index b4e64c0561b..d4bc90d412c 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,8 +1,19 @@
+Fri Jul 7 09:47:36 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
+
+ * netsvcs/lib/Server_Logging_Handler_T.cpp (open_common): Don't
+ pass in the length to the ACE_CString constructor -- just let is
+ copy what's already there. Thanks to Valery Arkhangorodsky
+ <valerya@servicesoft.com> for reporting this.
+
+ * ace/ACE.cpp (timestamp): Make sure to insert a NUL byte at the
+ end of yeartmp and timetmp. Thanks to David Levine and Purify
+ for reporting this.
+
Fri Jul 07 09:36:05 2000 David L. Levine <levine@cs.wustl.edu>
* examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp (handle_client):
- cast result of ACE_OS::getpid () to int, and print as an int,
- to avoid compiler warning about mismatched format specifier.
+ cast result of ACE_OS::getpid () to int, and print as an int, to
+ avoid compiler warning about mismatched format specifier.
Thu Jul 6 10:36:46 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
diff --git a/ace/ACE.cpp b/ace/ACE.cpp
index 9b364bafac4..17f0ff7c134 100644
--- a/ace/ACE.cpp
+++ b/ace/ACE.cpp
@@ -2974,10 +2974,12 @@ ACE::timestamp (ACE_TCHAR date_and_time[],
ACE_OS::strncpy (yeartmp,
&date_and_time[20],
4);
+ yeartmp[4] = '\0';
char timetmp[9];
ACE_OS::strncpy (timetmp,
&date_and_time[11],
8);
+ timetmp[8] = '\0';
ACE_OS::sprintf (&date_and_time[11],
"%s %s.%06ld",
yeartmp,
diff --git a/netsvcs/lib/Server_Logging_Handler_T.cpp b/netsvcs/lib/Server_Logging_Handler_T.cpp
index b9890d8cb54..4f63edbe447 100644
--- a/netsvcs/lib/Server_Logging_Handler_T.cpp
+++ b/netsvcs/lib/Server_Logging_Handler_T.cpp
@@ -160,14 +160,11 @@ ACE_Server_Logging_Handler_T<ACE_PEER_STREAM_2, COUNTER, ACE_SYNCH_USE, LMR>::op
-1);
#if !defined (ACE_HAS_BROKEN_HPUX_TEMPLATES) && !defined (__GNUG__)
- this->receiver_.m_ = ACE_CString (client_addr.get_host_name (),
- MAXHOSTNAMELEN + 1);
+ this->receiver_.m_ = ACE_CString (client_addr.get_host_name ());
#else
- this->host_name_ = ACE_CString (client_addr.get_host_name (),
- MAXHOSTNAMELEN + 1);
+ this->host_name_ = ACE_CString (client_addr.get_host_name ());
#endif /* ! ACE_HAS_BROKEN_HPUX_TEMPLATES && ! __GNUG__ */
-
ACE_DEBUG ((LM_DEBUG,
"(%t) accepted connection from host %s on fd %d\n",
client_addr.get_host_name (),