# HG changeset patch # User Alain Mazy # Date 1749792244 -7200 # Node ID e1168108e57f4ac968f21364b36327a261580c87 # Parent 33f88747fe68de57a64f03143f955f29ab811e36# Parent 97813557b6fa985b7063c73e41478e8865a6569e integration mainline->attach-custom-data diff -r 33f88747fe68 -r e1168108e57f OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Thu Jun 12 19:55:57 2025 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Fri Jun 13 07:24:04 2025 +0200 @@ -567,7 +567,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; }