summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wifi-plugin.c2
1 files changed, 1 insertions, 1 deletions
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 &&