summaryrefslogtreecommitdiff
path: root/ace/Log_Msg.cpp
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 /ace/Log_Msg.cpp
parent68d43eb2db956f49ae958fed154472cc2d032b32 (diff)
downloadATCD-e7b478081536f2582d513b69c9c0a74722a3d2fd.tar.gz
ChangeLogTag: Thu Aug 23 09:17:25 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'ace/Log_Msg.cpp')
-rw-r--r--ace/Log_Msg.cpp4
1 files changed, 2 insertions, 2 deletions
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 *