summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2001-08-24 21:18:27 +0000
committerbala <balanatarajan@users.noreply.github.com>2001-08-24 21:18:27 +0000
commit9be313215bd4606577708f16c7770bbe9913c7d4 (patch)
treed5fd7dc817ff3a6390fcadd1fe49270277bbcce6
parent1fd65fd60675cea800f2db16586fbe0d150e5e97 (diff)
downloadATCD-9be313215bd4606577708f16c7770bbe9913c7d4.tar.gz
ChangeLogTag: Fri Aug 24 14:25:31 2001 Balachandran Natarajan <bala@cs.wustl.edu>
-rw-r--r--ace/Log_Msg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index 80b513c7497..b7ac5ecaade 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -1896,7 +1896,7 @@ void
ACE_Log_Msg::file (const char *s)
{
this->file_[0] = '\0';
- ACE_OS::strncpy (this->file_, s, sizeof (this->file_) - 1);
+ ACE_OS::strncat (this->file_, s, sizeof (this->file_) - 1);
}
const ACE_TCHAR *
@@ -1908,8 +1908,8 @@ ACE_Log_Msg::msg (void)
void
ACE_Log_Msg::msg (const ACE_TCHAR *m)
{
- this->msg_[0] = '\0';
- ACE_OS::strncpy (this->msg_, m,
+ this->msg_[0] = L'\0';
+ ACE_OS::strncat (this->msg_, m,
(sizeof this->msg_ / sizeof (ACE_TCHAR)) - 1);
}