# HG changeset patch # User Alain Mazy # Date 1749792197 -7200 # Node ID 97813557b6fa985b7063c73e41478e8865a6569e # Parent 24fc490e40b749be39e44ec76d881fba6d393eb2 fix CopyString diff -r 24fc490e40b7 -r 97813557b6fa OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Thu Jun 12 13:27:51 2025 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Fri Jun 13 07:23:17 2025 +0200 @@ -449,7 +449,7 @@ memcpy(result, str.c_str(), str.size()); } - result[str.size() - 1] = '\0'; // Add the null terminator of the string + result[str.size()] = '\0'; // Add the null terminator of the string return result; }