diff options
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/sockets/sfdnsres.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/ssl/ssl_backend.h | 1 |
2 files changed, 2 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 diff --git a/src/core/hle/service/ssl/ssl_backend.h b/src/core/hle/service/ssl/ssl_backend.h index 624e07d41..0dd8d9118 100644 --- a/src/core/hle/service/ssl/ssl_backend.h +++ b/src/core/hle/service/ssl/ssl_backend.h @@ -31,6 +31,7 @@ constexpr Result ResultWouldBlock{ErrorModule::SSLSrv, 204}; class SSLConnectionBackend { public: + virtual ~SSLConnectionBackend() {} virtual void SetSocket(std::shared_ptr<Network::SocketBase> socket) = 0; virtual Result SetHostName(const std::string& hostname) = 0; virtual Result DoHandshake() = 0; |