forked from Archive/PX4-Autopilot
microdds_client: fix check for length of participant XML (#21374)
This commit is contained in:
parent
ba17a137e1
commit
6fddbea3e4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue