mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-26 12:48:27 +00:00
buffer doesn't survive across CORO boundary
This commit is contained in:
parent
16f25c2e06
commit
3460214467
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user