From 03ba85dcd2d47cf31d6181b40620e278f7f30427 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Mar 2017 18:08:38 +0300 Subject: more warnings fixed --- protocols/Twitter/src/oauth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Twitter/src/oauth.cpp') diff --git a/protocols/Twitter/src/oauth.cpp b/protocols/Twitter/src/oauth.cpp index 6579a1e797..efca13a9c8 100644 --- a/protocols/Twitter/src/oauth.cpp +++ b/protocols/Twitter/src/oauth.cpp @@ -251,7 +251,7 @@ map mir_twitter::CrackURL(wstring url) //debugLogW("**CRACK::3 - port is %s", port1); explicitPort = L"1"; } - else ppro_->debugLogW(L"**CRACK - not a proper URL? doesn't have a colon. URL is %s", url); + else ppro_->debugLogW(L"**CRACK - not a proper URL? doesn't have a colon. URL is %s", url.c_str()); for (size_t i = 1; i < urlToks2.size(); ++i) { if (i > 1) { @@ -308,7 +308,7 @@ wstring mir_twitter::OAuthNormalizeUrl(const wstring& url) if (Compare(brokenURL[L"scheme"], L"http", false) && !(Compare(brokenURL[L"port"], L"80", false)) || (Compare(brokenURL[L"scheme"], L"https", false) && !(Compare(brokenURL[L"port"], L"443", false)))) { - mir_snwprintf(port, _countof(port), L":%s", brokenURL[L"port"]); + mir_snwprintf(port, _countof(port), L":%s", brokenURL[L"port"].c_str()); } // InternetCrackUrl includes ? and # elements in the path, -- cgit v1.2.3