From 296c8de759bbb2758e2fa83bd0a033835b57f7a3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 24 Jul 2021 07:13:55 -0500 Subject: [PATCH] Fix copying rikeyid value --- libgamestream/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgamestream/client.c b/libgamestream/client.c index e15f143..2be4e74 100644 --- a/libgamestream/client.c +++ b/libgamestream/client.c @@ -677,7 +677,7 @@ int gs_start_app(PSERVER_DATA server, STREAM_CONFIGURATION *config, int appId, b srand(time(NULL)); char url[4096]; u_int32_t rikeyid = 0; - memset(&rikeyid, config->remoteInputAesIv, 4); + memcpy(&rikeyid, config->remoteInputAesIv, 4); rikeyid = htonl(rikeyid); char rikey_hex[33]; bytes_to_hex(config->remoteInputAesKey, rikey_hex, 16);