From 684d06b2240ed16ec2a43930c6d72e107db49a3f Mon Sep 17 00:00:00 2001 From: "hyunuk.tak" Date: Tue, 14 Dec 2021 09:16:45 +0900 Subject: Replace g_memdup to g_memdup2 Change-Id: I818653d3fadcb5980ef3967904bd0379de296a94 Signed-off-by: hyunuk.tak --- src/wifi-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi-plugin.c b/src/wifi-plugin.c index 7a5377c..56cc557 100644 --- a/src/wifi-plugin.c +++ b/src/wifi-plugin.c @@ -354,7 +354,7 @@ static int add_device(uas_device_info_t *device) wifi_info->new_device = true; /* Add to list */ dev_list = g_slist_prepend(dev_list, - g_memdup(wifi_info, sizeof(uas_wifi_info_t))); + g_memdup2(wifi_info, sizeof(uas_wifi_info_t))); UA_WIFI_DBG("Added device to list, num devices = %d", g_slist_length(dev_list)); if (mac_len && ip_len && -- cgit v1.2.3