diff options
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp b/TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp index fb809ec0c06..78dd8461d30 100644 --- a/TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp @@ -287,12 +287,17 @@ ImR_Activator_i::start_server(const char* name, { if (debug_ > 1) ACE_DEBUG((LM_DEBUG, "ImR Activator: Starting server <%s>...\n", name)); + + ACE_TString cmdline_tstr(ACE_TEXT_CHAR_TO_TCHAR(cmdline)); + size_t cmdline_buf_len = cmdline_tstr.length(); if (debug_ > 1) - ACE_DEBUG((LM_DEBUG, "\tcommand line : <%s>\n\tdirectory : <%s>\n", cmdline, dir)); + ACE_DEBUG((LM_DEBUG, + "\tcommand line : len=%d <%s>\n\tdirectory : <%C>\n", + cmdline_buf_len, cmdline_tstr.c_str(), dir)); ACE_Process_Options proc_opts ( 1, - ACE_Process_Options::DEFAULT_COMMAND_LINE_BUF_LEN, + cmdline_buf_len + 1, this->env_buf_len_, this->max_env_vars_); proc_opts.command_line (ACE_TEXT_CHAR_TO_TCHAR(cmdline)); proc_opts.working_directory (dir); |