summaryrefslogtreecommitdiff
path: root/ACE/ace/Log_Record.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Log_Record.cpp')
-rw-r--r--ACE/ace/Log_Record.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/Log_Record.cpp b/ACE/ace/Log_Record.cpp
index f790cf7d24c..55ebb78c821 100644
--- a/ACE/ace/Log_Record.cpp
+++ b/ACE/ace/Log_Record.cpp
@@ -240,7 +240,7 @@ ACE_Log_Record::format_msg (const ACE_TCHAR host_name[],
time_t const now = this->secs_;
ACE_TCHAR ctp[26]; // 26 is a magic number...
- if (ACE_OS::ctime_r (&now, ctp, sizeof ctp) == 0)
+ if (ACE_OS::ctime_r (&now, ctp, sizeof ctp / sizeof (ACE_TCHAR)) == 0)
return -1;
/* 01234567890123456789012345 */