summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2001-08-23 14:20:27 +0000
committerbala <balanatarajan@users.noreply.github.com>2001-08-23 14:20:27 +0000
commite7b478081536f2582d513b69c9c0a74722a3d2fd (patch)
tree0d9ef788e92c4b82197378fc6f94fb5a484cd6cc
parent68d43eb2db956f49ae958fed154472cc2d032b32 (diff)
downloadATCD-e7b478081536f2582d513b69c9c0a74722a3d2fd.tar.gz
ChangeLogTag: Thu Aug 23 09:17:25 2001 Balachandran Natarajan <bala@cs.wustl.edu>
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLogs/ChangeLog-02a6
-rw-r--r--ChangeLogs/ChangeLog-03a6
-rw-r--r--ace/Log_Msg.cpp4
4 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8fd3a36e436..494c1ef5522 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Aug 23 09:17:25 2001 Balachandran Natarajan <bala@cs.wustl.edu>
+
+ * ace/Log_Msg.cpp (file): Reduced the number of bytes copied in
+ ACE_Log_Msg::file () and ACE_Log_Msg::msg () by one. Thanks to
+ Alain Decamps <Alain.Decamps@PIDPA.be> for pointing this out.
+
Thu Aug 23 08:11:22 2001 Steve Huston <shuston@riverace.com>
* ace/Configuration_Import_Export.cpp (process_previous_line_format):
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index 8fd3a36e436..494c1ef5522 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,9 @@
+Thu Aug 23 09:17:25 2001 Balachandran Natarajan <bala@cs.wustl.edu>
+
+ * ace/Log_Msg.cpp (file): Reduced the number of bytes copied in
+ ACE_Log_Msg::file () and ACE_Log_Msg::msg () by one. Thanks to
+ Alain Decamps <Alain.Decamps@PIDPA.be> for pointing this out.
+
Thu Aug 23 08:11:22 2001 Steve Huston <shuston@riverace.com>
* ace/Configuration_Import_Export.cpp (process_previous_line_format):
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index 8fd3a36e436..494c1ef5522 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,9 @@
+Thu Aug 23 09:17:25 2001 Balachandran Natarajan <bala@cs.wustl.edu>
+
+ * ace/Log_Msg.cpp (file): Reduced the number of bytes copied in
+ ACE_Log_Msg::file () and ACE_Log_Msg::msg () by one. Thanks to
+ Alain Decamps <Alain.Decamps@PIDPA.be> for pointing this out.
+
Thu Aug 23 08:11:22 2001 Steve Huston <shuston@riverace.com>
* ace/Configuration_Import_Export.cpp (process_previous_line_format):
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index c49b9de142a..61b4c89c5e3 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -1890,7 +1890,7 @@ void
ACE_Log_Msg::file (const char *s)
{
this->file_[0] = '\0';
- ACE_OS::strncpy (this->file_, s, sizeof this->file_);
+ ACE_OS::strncpy (this->file_, s, sizeof (this->file_) - 1);
}
const ACE_TCHAR *
@@ -1904,7 +1904,7 @@ ACE_Log_Msg::msg (const ACE_TCHAR *m)
{
this->msg_[0] = '\0';
ACE_OS::strncpy (this->msg_, m,
- (sizeof this->msg_ / sizeof (ACE_TCHAR)));
+ (sizeof this->msg_ / sizeof (ACE_TCHAR)) - 1);
}
ACE_Log_Msg_Callback *