diff options
author | ocielliottc <elliottc@objectcomputing.com> | 2022-12-09 14:22:41 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 14:22:41 -0600 |
commit | 432c3c03538e5b227e8095c42f6a58a9744a9d77 (patch) | |
tree | 6d7d08a13bd2ce76c0b0826f9c995b20a365c7bc | |
parent | 4749c83a1686db98a4cbc661333b549db3235873 (diff) | |
parent | 58508c3d1fd8dd4c3b5398550990fcb88ae48b2f (diff) | |
download | ATCD-432c3c03538e5b227e8095c42f6a58a9744a9d77.tar.gz |
Merge pull request #1991 from DOCGroup/elliottc/configuration-fix
[ace6tao2] Correction for wide-char builds
-rw-r--r-- | ACE/ace/Configuration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/Configuration.cpp b/ACE/ace/Configuration.cpp index ee492ccefef..3b737643629 100644 --- a/ACE/ace/Configuration.cpp +++ b/ACE/ace/Configuration.cpp @@ -1538,10 +1538,10 @@ ACE_Configuration_Heap::open_section (const ACE_Configuration_Section_Key& base, ) { // Create a substring from the current location until the new found separator - // Because ACE_TString works with the character length we need to keep in mind - // the size of a single character + // Because both separator and sub_section are ACE_TCHAR*, the character size is + // already taken into account. ACE_TString tsub_section (sub_section); - ACE_TString const simple_section = tsub_section.substring(0, (separator - sub_section) / sizeof (ACE_TCHAR)); + ACE_TString const simple_section = tsub_section.substring(0, separator - sub_section); int const ret_val = open_simple_section (result, simple_section.c_str(), create, result); if (ret_val) return ret_val; |