ieee802154/mac802154.c:332:3: Fix error: 'memcpy' reading 13 bytes from a region of size 4

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-03-08 20:31:54 +08:00 committed by Petro Karashchenko
parent 3b786a53cd
commit ec77c2d3de

View File

@ -329,7 +329,7 @@ void mac802154_createdatareq(FAR struct ieee802154_privmac_s *priv,
* progession.
*/
memcpy(&txdesc->destaddr, &coordaddr, sizeof(struct ieee802154_addr_s));
memcpy(&txdesc->destaddr, coordaddr, sizeof(struct ieee802154_addr_s));
/* Save a reference of the tx descriptor */