Skip to content

Commit

Permalink
fal_rtt.c:53:9: warning: implicit declaration of function 'memcpy'
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqingli05 committed Dec 19, 2024
1 parent 47a43a6 commit 235e520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/fal/src/fal_rtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static rt_err_t blk_dev_control(rt_device_t dev, rt_uint8_t cmd, void *args)
return -RT_ERROR;
}

memcpy(geometry, &part->geometry, sizeof(struct rt_device_blk_geometry));
rt_memcpy(geometry, &part->geometry, sizeof(struct rt_device_blk_geometry));
}
else if (cmd == RT_DEVICE_CTRL_BLK_ERASE)
{
Expand Down

0 comments on commit 235e520

Please sign in to comment.