From ec77c2d3deb67c9874cc7a25c9f731ff9219d7d0 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 8 Mar 2022 20:31:54 +0800 Subject: [PATCH] ieee802154/mac802154.c:332:3: Fix error: 'memcpy' reading 13 bytes from a region of size 4 Signed-off-by: Xiang Xiao --- wireless/ieee802154/mac802154.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c index 7593ffbc76..6a1f31d156 100644 --- a/wireless/ieee802154/mac802154.c +++ b/wireless/ieee802154/mac802154.c @@ -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 */