diff --git a/include/boost/process/v2/detail/environment_win.hpp b/include/boost/process/v2/detail/environment_win.hpp index d01aad369..40e62c057 100644 --- a/include/boost/process/v2/detail/environment_win.hpp +++ b/include/boost/process/v2/detail/environment_win.hpp @@ -85,7 +85,7 @@ struct key_char_traits if (s1 < s2) return std::move(s2, s2 + n, s1); else - return std::move_backward(s2, s2 + n, s1); + return std::move_backward(s2, s2 + n, s1 + n); } BOOST_CONSTEXPR static