# HG changeset patch # User Sebastien Jodogne # Date 1786467641 -7200 # Node ID 923bec010d541bae5ccf4a09d06bcef3c5cfa8a2 # Parent 29f895d70f3e5381bebc7620b40e381478860ebe fix build of Toolbox::NormalizeAet() diff -r 29f895d70f3e -r 923bec010d54 OrthancFramework/Sources/Toolbox.cpp --- a/OrthancFramework/Sources/Toolbox.cpp Tue Aug 11 18:57:20 2026 +0200 +++ b/OrthancFramework/Sources/Toolbox.cpp Tue Aug 11 19:00:41 2026 +0200 @@ -3057,14 +3057,18 @@ // + removes leading and trailing spaces that must be ignored std::string Toolbox::NormalizeAet(const std::string& aet) { - std::string normalizedAet = aet; - uint8_t* p = reinterpret_cast(normalizedAet.data()); - - for (size_t i = 0; i < aet.size(); ++i, ++p) + std::string normalizedAet; + + for (size_t i = 0; i < aet.size(); ++i) { - if (iscntrl(*p) || *p == '\\') + if (iscntrl(aet[i]) || + aet[i] == '\\') { - *p = '*'; + normalizedAet.push_back('*'); + } + else + { + normalizedAet.push_back(aet[i]); } }