# HG changeset patch # User Alain Mazy # Date 1763010863 -3600 # Node ID f2662c222e04bfeded17d0fd0c2c4e80f7fec928 # Parent 3da6afe03965c57caeececed9b5d1cda3f8268c0 cppcheck: uselessCallsSubstr diff -r 3da6afe03965 -r f2662c222e04 OrthancFramework/Sources/HttpServer/HttpOutput.cpp --- a/OrthancFramework/Sources/HttpServer/HttpOutput.cpp Thu Nov 13 06:11:29 2025 +0100 +++ b/OrthancFramework/Sources/HttpServer/HttpOutput.cpp Thu Nov 13 06:14:23 2025 +0100 @@ -619,7 +619,7 @@ throw OrthancException(ErrorCode_InternalError); } - boundary = boundary.substr(0, 70); + boundary.resize(70); contentTypeHeader = ("multipart/" + subType + "; type=" + tmp + "; boundary=" + boundary); }