mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
Cheevos: Don't choke on long passwords
This commit is contained in:
parent
a0e97059f5
commit
1893bfd248
|
@ -166,8 +166,8 @@ int rc_url_get_badge_image(char* buffer, size_t size, const char* badge_name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int rc_url_login_with_password(char* buffer, size_t size, const char* user_name, const char* password) {
|
int rc_url_login_with_password(char* buffer, size_t size, const char* user_name, const char* password) {
|
||||||
char urle_user_name[64];
|
char urle_user_name[256];
|
||||||
char urle_password[64];
|
char urle_password[256];
|
||||||
int written;
|
int written;
|
||||||
|
|
||||||
if (rc_url_encode(urle_user_name, sizeof(urle_user_name), user_name) != 0) {
|
if (rc_url_encode(urle_user_name, sizeof(urle_user_name), user_name) != 0) {
|
||||||
|
|
|
@ -366,7 +366,7 @@ static void LoginASyncCallback(s32 status_code, const FrontendCommon::HTTPDownlo
|
||||||
|
|
||||||
static void SendLogin(const char* username, const char* password, FrontendCommon::HTTPDownloader* http_downloader)
|
static void SendLogin(const char* username, const char* password, FrontendCommon::HTTPDownloader* http_downloader)
|
||||||
{
|
{
|
||||||
char url[256] = {};
|
char url[768] = {};
|
||||||
int res = rc_url_login_with_password(url, sizeof(url), username, password);
|
int res = rc_url_login_with_password(url, sizeof(url), username, password);
|
||||||
Assert(res == 0);
|
Assert(res == 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue