Fix static analyzer issue 65/288165/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20230216.140315
authorJiung Yu <jiung.yu@samsung.com>
Tue, 7 Feb 2023 00:54:25 +0000 (09:54 +0900)
committerJiung Yu <jiung.yu@samsung.com>
Mon, 13 Feb 2023 02:34:59 +0000 (02:34 +0000)
Change-Id: I6ff5feb17b0c163a45c239554f0ff02f9276731d
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
(cherry picked from commit c615e740e567718888dbba3f71d29f3c0dbbcd6e)

plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c

index ebc9cc7..146da08 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));