summaryrefslogtreecommitdiffstats
path: root/mailnews/compose/src/nsSmtpProtocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/compose/src/nsSmtpProtocol.cpp')
-rw-r--r--mailnews/compose/src/nsSmtpProtocol.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mailnews/compose/src/nsSmtpProtocol.cpp b/mailnews/compose/src/nsSmtpProtocol.cpp
index 54d1e6f64..04347c1d0 100644
--- a/mailnews/compose/src/nsSmtpProtocol.cpp
+++ b/mailnews/compose/src/nsSmtpProtocol.cpp
@@ -2261,10 +2261,12 @@ nsSmtpProtocol::GetUsernamePassword(nsACString &aUsername,
nsCString hostname;
rv = smtpServer->GetHostname(hostname);
NS_ENSURE_SUCCESS(rv, rv);
+ nsAutoString hostnameUTF16;
+ CopyASCIItoUTF16(hostname, hostnameUTF16);
const char16_t *formatStrings[] =
{
- NS_ConvertASCIItoUTF16(hostname).get(),
+ hostnameUTF16.get(),
nullptr
};