diff options
author | Fred Hornsey <fred@hornsey.us> | 2019-06-05 18:07:28 -0500 |
---|---|---|
committer | Fred Hornsey <fred@hornsey.us> | 2019-06-05 18:07:28 -0500 |
commit | 1b1d17629d3a1a46887606147470b1015e8b1eff (patch) | |
tree | 85fdf24f5ba9c96476d8f5974847098aace133fa /ACE/ace/Log_Msg.cpp | |
parent | 2eabbbe957e6bbd4b2dfe2ef7eccb966d9ed00a2 (diff) | |
download | ATCD-1b1d17629d3a1a46887606147470b1015e8b1eff.tar.gz |
reduce gettid %t wchar buffer size
Diffstat (limited to 'ACE/ace/Log_Msg.cpp')
-rw-r--r-- | ACE/ace/Log_Msg.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ACE/ace/Log_Msg.cpp b/ACE/ace/Log_Msg.cpp index a0ac80cce71..ee83bbcae25 100644 --- a/ACE/ace/Log_Msg.cpp +++ b/ACE/ace/Log_Msg.cpp @@ -1795,13 +1795,15 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str, # ifdef ACE_HAS_GETTID # define ACE_LOG_MSG_GET_THREAD_ID ACE_OS::thr_gettid +# define ACE_LOG_MSG_GET_THREAD_ID_BUFFER_SIZE 8 # else # define ACE_LOG_MSG_GET_THREAD_ID ACE_OS::thr_id +# define ACE_LOG_MSG_GET_THREAD_ID_BUFFER_SIZE 32 # endif # if defined ACE_USES_WCHAR { - char tid_buf[32] = {}; + char tid_buf[ACE_LOG_MSG_GET_THREAD_ID_BUFFER_SIZE] = {}; ACE_LOG_MSG_GET_THREAD_ID (tid_buf, sizeof tid_buf); this_len = ACE_OS::strlen (tid_buf); ACE_OS::strncpy (bp, ACE_TEXT_CHAR_TO_TCHAR (tid_buf), |