summaryrefslogtreecommitdiff
path: root/protocols/Steam/src
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-05-28 06:03:34 +0000
committerRobert Pösel <robyer@seznam.cz>2015-05-28 06:03:34 +0000
commiteadbcaefaf773dff8b4e860bf9a42ce3af04dd1d (patch)
treedee8a21b15c2eb6911ec80e340c8e6d27d6a4a30 /protocols/Steam/src
parenta2cbb34b00f6de9d7f5d49fad02dc6f94ccf81db (diff)
Steam: Fix use of CMString and related warnings
git-svn-id: http://svn.miranda-ng.org/main/trunk@13866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r--protocols/Steam/src/api/authorization.h6
-rw-r--r--protocols/Steam/src/api/rsa_key.h5
2 files changed, 6 insertions, 5 deletions
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());
}
};