mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-29 19:15:38 +00:00
dep/rurl: Enlarge username buffers
This commit is contained in:
parent
e64f8cc2c5
commit
a7017783e4
|
@ -52,7 +52,7 @@ static int rc_url_encode(char* encoded, size_t len, const char* str) {
|
|||
|
||||
int rc_url_award_cheevo(char* buffer, size_t size, const char* user_name, const char* login_token,
|
||||
unsigned cheevo_id, int hardcore, const char* game_hash) {
|
||||
char urle_user_name[64];
|
||||
char urle_user_name[256];
|
||||
char urle_login_token[64];
|
||||
int written;
|
||||
|
||||
|
@ -82,7 +82,7 @@ int rc_url_award_cheevo(char* buffer, size_t size, const char* user_name, const
|
|||
}
|
||||
|
||||
int rc_url_submit_lboard(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned lboard_id, int value) {
|
||||
char urle_user_name[64];
|
||||
char urle_user_name[256];
|
||||
char urle_login_token[64];
|
||||
char signature[64];
|
||||
unsigned char hash[16];
|
||||
|
@ -130,7 +130,7 @@ int rc_url_get_gameid(char* buffer, size_t size, const char* hash) {
|
|||
}
|
||||
|
||||
int rc_url_get_patch(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid) {
|
||||
char urle_user_name[64];
|
||||
char urle_user_name[256];
|
||||
char urle_login_token[64];
|
||||
int written;
|
||||
|
||||
|
@ -190,7 +190,7 @@ int rc_url_login_with_password(char* buffer, size_t size, const char* user_name,
|
|||
}
|
||||
|
||||
int rc_url_login_with_token(char* buffer, size_t size, const char* user_name, const char* login_token) {
|
||||
char urle_user_name[64];
|
||||
char urle_user_name[256];
|
||||
char urle_login_token[64];
|
||||
int written;
|
||||
|
||||
|
@ -214,7 +214,7 @@ int rc_url_login_with_token(char* buffer, size_t size, const char* user_name, co
|
|||
}
|
||||
|
||||
int rc_url_get_unlock_list(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid, int hardcore) {
|
||||
char urle_user_name[64];
|
||||
char urle_user_name[256];
|
||||
char urle_login_token[64];
|
||||
int written;
|
||||
|
||||
|
@ -240,7 +240,7 @@ int rc_url_get_unlock_list(char* buffer, size_t size, const char* user_name, con
|
|||
}
|
||||
|
||||
int rc_url_post_playing(char* buffer, size_t size, const char* user_name, const char* login_token, unsigned gameid) {
|
||||
char urle_user_name[64];
|
||||
char urle_user_name[256];
|
||||
char urle_login_token[64];
|
||||
int written;
|
||||
|
||||
|
|
|
@ -608,7 +608,7 @@ static void GetUserUnlocksCallback(s32 status_code, const FrontendCommon::HTTPDo
|
|||
|
||||
static void GetUserUnlocks()
|
||||
{
|
||||
char url[256];
|
||||
char url[512];
|
||||
int res = rc_url_get_unlock_list(url, sizeof(url), s_username.c_str(), s_login_token.c_str(), g_game_id,
|
||||
static_cast<int>(g_challenge_mode));
|
||||
Assert(res == 0);
|
||||
|
@ -752,7 +752,7 @@ static void GetPatchesCallback(s32 status_code, const FrontendCommon::HTTPDownlo
|
|||
|
||||
static void GetPatches(u32 game_id)
|
||||
{
|
||||
char url[256] = {};
|
||||
char url[512];
|
||||
int res = rc_url_get_patch(url, sizeof(url), s_username.c_str(), s_login_token.c_str(), game_id);
|
||||
Assert(res == 0);
|
||||
|
||||
|
@ -899,7 +899,7 @@ void SendPlaying()
|
|||
if (!HasActiveGame())
|
||||
return;
|
||||
|
||||
char url[256];
|
||||
char url[512];
|
||||
int res = rc_url_post_playing(url, sizeof(url), s_username.c_str(), s_login_token.c_str(), g_game_id);
|
||||
Assert(res == 0);
|
||||
|
||||
|
@ -942,7 +942,7 @@ void SendPing()
|
|||
if (s_has_rich_presence)
|
||||
UpdateRichPresence();
|
||||
|
||||
char url[256];
|
||||
char url[512];
|
||||
char post_data[512];
|
||||
int res = rc_url_ping(url, sizeof(url), post_data, sizeof(post_data), s_username.c_str(), s_login_token.c_str(),
|
||||
g_game_id, s_rich_presence_string.c_str());
|
||||
|
@ -1101,7 +1101,7 @@ void UnlockAchievement(u32 achievement_id, bool add_notification /* = true*/)
|
|||
return;
|
||||
}
|
||||
|
||||
char url[256];
|
||||
char url[512];
|
||||
rc_url_award_cheevo(url, sizeof(url), s_username.c_str(), s_login_token.c_str(), achievement_id,
|
||||
static_cast<int>(g_challenge_mode), s_game_hash.c_str());
|
||||
s_http_downloader->CreateRequest(url, UnlockAchievementCallback);
|
||||
|
|
Loading…
Reference in a new issue