summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorocielliottc <elliottc@objectcomputing.com>2019-06-27 06:55:32 -0500
committerGitHub <noreply@github.com>2019-06-27 06:55:32 -0500
commit5b391cf2ee1461c4652f57a88d109c653a0a4139 (patch)
tree9a0a349b3107a5c96877281bd52af0c2d11c8ad9
parent441f6abac2d8967cc993b6d9d947975f707ff505 (diff)
parentb2cae554d7e5222aa7a14a7792219499344853b5 (diff)
downloadATCD-5b391cf2ee1461c4652f57a88d109c653a0a4139.tar.gz
Merge pull request #929 from ocielliottc/log_percent_t_wchar_buf_size
Increase the ACE_LOG_MSG_GET_THREAD_ID_BUFFER_SIZE from 8 to 12 as an int is used in the implementation of ACE_OS::thr_gettid and could require 11 bytes of text, including a sign, and a byte to null terminate the string.
-rw-r--r--ACE/ace/Log_Msg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/Log_Msg.cpp b/ACE/ace/Log_Msg.cpp
index 9e3f3949e52..dbf09f5d3da 100644
--- a/ACE/ace/Log_Msg.cpp
+++ b/ACE/ace/Log_Msg.cpp
@@ -1794,7 +1794,7 @@ 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
+# define ACE_LOG_MSG_GET_THREAD_ID_BUFFER_SIZE 12
# else
# define ACE_LOG_MSG_GET_THREAD_ID ACE_OS::thr_id
# define ACE_LOG_MSG_GET_THREAD_ID_BUFFER_SIZE 32