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

This commit is contained in:
Daniel Mesham 2023-03-27 19:03:09 +02:00 committed by GitHub
parent ba17a137e1
commit 6fddbea3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}