Fix static analyzer issue 09/287809/1 accepted/tizen/unified/20230221.031428
authorJiung Yu <jiung.yu@samsung.com>
Tue, 7 Feb 2023 00:54:25 +0000 (09:54 +0900)
committerJiung Yu <jiung.yu@samsung.com>
Tue, 7 Feb 2023 00:54:42 +0000 (09:54 +0900)
Change-Id: I6ff5feb17b0c163a45c239554f0ff02f9276731d
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index 2daf220..8b86a4e 100644 (file)
@@ -2165,7 +2165,7 @@ static void _ws_process_device_found_properties(GDBusConnection *connection,
        }
 
        if (dev_data->p2p_dev_addr[0] == 0x0)
-               memcpy(dev_data->p2p_dev_addr, event.dev_addr, WS_MACSTR_LEN);
+               memcpy(dev_data->p2p_dev_addr, event.dev_addr, OEM_MACADDR_LEN);
 
        if (dev_data->has_asp_services)
                ws_get_advertise_service(peer_path, (GList **)&(event.asp_services));