microdds_client: fix check for length of participant XML (#21374)

This commit is contained in:
Daniel Mesham
2023-03-27 10:03:09 -07:00
committed by GitHub
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;
}