mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
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:
committed by
Petro Karashchenko
parent
3b786a53cd
commit
ec77c2d3de
@@ -329,7 +329,7 @@ void mac802154_createdatareq(FAR struct ieee802154_privmac_s *priv,
|
|||||||
* progession.
|
* 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 */
|
/* Save a reference of the tx descriptor */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user