Merge pull request #10021 from Jamiras/cheevos_coro_fix

(cheevos) attempt to fix corrupted User-Agent string
This commit is contained in:
Twinaphex 2020-01-18 03:38:45 +01:00 committed by GitHub
commit d6592b6b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ static void rcheevos_get_user_agent(char* buffer)
int major, minor;
char tmp[64];
ptr = rcheevos_user_agent_prefix + sprintf(rcheevos_user_agent_prefix, "RetroArch/" PACKAGE_VERSION);
ptr = rcheevos_user_agent_prefix + sprintf(rcheevos_user_agent_prefix, "RetroArch/%s", PACKAGE_VERSION);
if (frontend && frontend->get_os)
{
@ -2486,8 +2486,6 @@ found:
*************************************************************************/
CORO_SUB(RCHEEVOS_HTTP_GET)
rcheevos_get_user_agent(buffer);
for (coro->k = 0; coro->k < 5; coro->k++)
{
if (coro->k != 0)
@ -2513,6 +2511,7 @@ found:
continue;
}
rcheevos_get_user_agent(buffer);
net_http_connection_set_user_agent(coro->conn, buffer);
coro->http = net_http_new(coro->conn);