mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 16:50:35 +08:00
Minor source reorganization; few dangerous C functions replaced with safer std:: alternatives
This commit is contained in:
@@ -20,7 +20,7 @@ std::string CanFrame::toString(StringRepresentation mode) const
|
||||
|
||||
char buf[50];
|
||||
char* wpos = buf, *epos = buf + sizeof(buf);
|
||||
memset(buf, 0, sizeof(buf));
|
||||
std::fill(buf, buf + sizeof(buf), 0);
|
||||
|
||||
if (id & FLAG_EFF)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user