Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqingli05 committed Dec 19, 2024
2 parents bc55f3f + 235e520 commit 858e659
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 @@ -52,7 +52,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 858e659

Please sign in to comment.