ACE_TAO icon indicating copy to clipboard operation
ACE_TAO copied to clipboard

Fix error in ACE_Process_Options::inherit_environment ()

Open viktor-ch opened this issue 1 year ago • 3 comments

While using ACE_Wide_To_Ascii string conversion class (and correspondingly ::WideCharToMultiByte) there must be expected that the length of the output multi-byte string is not equal to the length of the input Unicode string. That's why the variable iter used to iterate over the original Unicode environment variables must be increased by the source string length (and not by the length of the converted string).

viktor-ch avatar Jan 02 '23 14:01 viktor-ch