diff options
Diffstat (limited to 'protocols/Steam/src/api/rsa_key.h')
-rw-r--r-- | protocols/Steam/src/api/rsa_key.h | 5 |
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());
}
};
|