diff --git a/Source/Network/TextEncoding.cpp b/Source/Network/TextEncoding.cpp index 98ad459f6..6afb259f5 100644 --- a/Source/Network/TextEncoding.cpp +++ b/Source/Network/TextEncoding.cpp @@ -145,7 +145,7 @@ std::string EncodeText(UINT codePage, const std::wstring& text) { delete[] converted; return ""; } - std::string result(converted, std::strlen(converted)); + std::string result(converted); delete[] converted; return result; }