mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 07:23:34 +08:00
strcmp() --> strncmp()
This commit is contained in:
@@ -545,7 +545,7 @@ public:
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return std::strcmp(Base::c_str(), ch) == 0;
|
||||
return std::strncmp(Base::c_str(), ch, MaxSize) == 0;
|
||||
}
|
||||
|
||||
template <typename R> bool operator!=(const R& rhs) const { return !operator==(rhs); }
|
||||
|
||||
Reference in New Issue
Block a user