mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 09:53:33 +08:00
microdds_client: fix check for length of participant XML (#21374)
This commit is contained in:
@@ -265,7 +265,7 @@ void MicroddsClient::run()
|
||||
"</dds>"
|
||||
);
|
||||
|
||||
if (ret < 0 || ret >= TOPIC_NAME_SIZE) {
|
||||
if (ret < 0 || ret >= PARTICIPANT_XML_SIZE) {
|
||||
PX4_ERR("create entities failed: namespace too long");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user