diff options
Diffstat (limited to 'src/core/hle/service/sockets')
-rw-r--r-- | src/core/hle/service/sockets/sfdnsres.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/sfdnsres.cpp b/src/core/hle/service/sockets/sfdnsres.cpp index 1196fb86c..fb8798b42 100644 --- a/src/core/hle/service/sockets/sfdnsres.cpp +++ b/src/core/hle/service/sockets/sfdnsres.cpp @@ -96,7 +96,7 @@ static void Append(std::vector<u8>& vec, T t) { static void AppendNulTerminated(std::vector<u8>& vec, std::string_view str) { size_t off = vec.size(); vec.resize(off + str.size() + 1); - std::memcpy(vec.data() + off, str.data(), str.size()); + std::memmove(vec.data() + off, str.data(), str.size()); } // We implement gethostbyname using the host's getaddrinfo rather than the |