summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornguyenq <nguyenq@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-01-22 21:30:36 +0000
committernguyenq <nguyenq@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2013-01-22 21:30:36 +0000
commitf4234de5d94b6bb06d06ca6715fd5274def726e8 (patch)
tree203861bd289d3e5bab93315438fb999ca8449141
parentc998c61d556c7c941414b090e61f6546c16d984e (diff)
downloadATCD-f4234de5d94b6bb06d06ca6715fd5274def726e8.tar.gz
Fix bug #479 where the starting command line argument string was truncated to 1024 bytes even if it is much longer.
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp9
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);