From eadbcaefaf773dff8b4e860bf9a42ce3af04dd1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 28 May 2015 06:03:34 +0000 Subject: Steam: Fix use of CMString and related warnings git-svn-id: http://svn.miranda-ng.org/main/trunk@13866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/api/authorization.h | 6 +++--- protocols/Steam/src/api/rsa_key.h | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/api/authorization.h b/protocols/Steam/src/api/authorization.h index d3ebc8246c..1b9e389685 100644 --- a/protocols/Steam/src/api/authorization.h +++ b/protocols/Steam/src/api/authorization.h @@ -12,8 +12,8 @@ public: AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); AddHeader("Referer", STEAM_WEB_URL "/mobilelogin/dologin?oauth_client_id=3638BFB1&oauth_scope=read_profile%20write_profile%20read_client%20write_client"); - CMStringA data(CMStringDataFormat::FORMAT, - "password=%s&username=%s&twofactorcode=%s&emailauth=%s&loginfriendlyname=%s&oauth_client_id=3638BFB1&captchagid=%s&captcha_text=%s&emailsteamid=%s&rsatimestamp=%s&rememberlogin=false&donotcache=%lld", + CMStringA data; + data.AppendFormat("password=%s&username=%s&twofactorcode=%s&emailauth=%s&loginfriendlyname=%s&oauth_client_id=3638BFB1&captchagid=%s&captcha_text=%s&emailsteamid=%s&rsatimestamp=%s&rememberlogin=false&donotcache=%lld", ptrA(mir_urlEncode(password)), ptrA(mir_urlEncode(username)), twofactorcode, @@ -24,7 +24,7 @@ public: guardId, timestamp, time(NULL)); - SetData(data.GetBuffer(), data.GetLength()); + SetData(data, data.GetLength()); } }; diff --git a/protocols/Steam/src/api/rsa_key.h b/protocols/Steam/src/api/rsa_key.h index 1cf33d15ab..5efdec2839 100644 --- a/protocols/Steam/src/api/rsa_key.h +++ b/protocols/Steam/src/api/rsa_key.h @@ -11,8 +11,9 @@ public: AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); - CMStringA data(CMStringDataFormat::FORMAT, "username=%s&donotcache=%lld", ptrA(mir_urlEncode(username)), time(NULL)); - SetData(data.GetBuffer(), data.GetLength()); + CMStringA data; + data.AppendFormat("username=%s&donotcache=%lld", ptrA(mir_urlEncode(username)), time(NULL)); + SetData(data, data.GetLength()); } }; -- cgit v1.2.3