mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 17:43:33 +08:00
strcmp() --> strncmp()
This commit is contained in:
@@ -126,7 +126,7 @@ bool DataTypeDescriptor::operator==(const DataTypeDescriptor& rhs) const
|
||||
(kind_ == rhs.kind_) &&
|
||||
(id_ == rhs.id_) &&
|
||||
(signature_ == rhs.signature_) &&
|
||||
!std::strcmp(full_name_, rhs.full_name_);
|
||||
!std::strncmp(full_name_, rhs.full_name_, MaxFullNameLen);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user