summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/api/rsa_key.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/api/rsa_key.h')
-rw-r--r--protocols/Steam/src/api/rsa_key.h5
1 files changed, 3 insertions, 2 deletions
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());
}
};