summaryrefslogtreecommitdiff
path: root/ace/Log_Msg.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2001-09-02 22:33:20 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2001-09-02 22:33:20 +0000
commitab9f6374b10e5e5c70aab45d974127afe0467379 (patch)
tree0824ba2a7b9aef26bc861bbf491a16f21b0467d0 /ace/Log_Msg.cpp
parent48daec51c958edb70d7a4cb36ef3ec884d363386 (diff)
downloadATCD-ab9f6374b10e5e5c70aab45d974127afe0467379.tar.gz
ChangeLogTag:Sat Sep 1 14:10:08 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'ace/Log_Msg.cpp')
-rw-r--r--ace/Log_Msg.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index 0237968b769..ba132d90191 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -1895,8 +1895,7 @@ ACE_Log_Msg::file (void)
void
ACE_Log_Msg::file (const char *s)
{
- this->file_[0] = '\0';
- ACE_OS::strncat (this->file_, s, sizeof (this->file_) - 1);
+ ACE_OS::strsncpy (this->file_, s, sizeof this->file_);
}
const ACE_TCHAR *
@@ -1908,9 +1907,8 @@ ACE_Log_Msg::msg (void)
void
ACE_Log_Msg::msg (const ACE_TCHAR *m)
{
- this->msg_[0] = L'\0';
- ACE_OS::strncat (this->msg_, m,
- (sizeof this->msg_ / sizeof (ACE_TCHAR)) - 1);
+ ACE_OS::strsncpy (this->msg_, m,
+ (sizeof this->msg_ / sizeof (ACE_TCHAR)));
}
ACE_Log_Msg_Callback *