changeset 6405:f2662c222e04

cppcheck: uselessCallsSubstr
author Alain Mazy <am@orthanc.team>
date Thu, 13 Nov 2025 06:14:23 +0100
parents 3da6afe03965
children f0651c024699
files OrthancFramework/Sources/HttpServer/HttpOutput.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
   }