You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The topic name pointer (pPublishInfo->pTopicName) returned by the code is NOT NULL terminated. Your application must use the topic name length (pPublishInfo->topicNameLength) to determine where does the topic end.
This is done to reuse the existing payload memory instead having to copy it to a different string in order to NULL terminate it.
Does that answer your question? Or are you saying that the topic name length variable is set incorrectly so that you are reading into the payload?
The value of the topic name variable is taking the value of the topic name + payload
The error is in the line 1448
Example:
Must be
The text was updated successfully, but these errors were encountered: