-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mqtt.cpp createFullTopicStr() #6
Comments
I accepted your suggestion. Thank You for the help! |
Hi Pina, Example: topicLen = 20: Best regards Walter |
Hi Pina,
mqtt.cpp line 78: (fullTopicStr + topicLen+1) = 0; // <-- the 0 is OUT OF ALLOCATED MEMORY!
see allocation at line 74: char fullTopicStr = (char*) calloc(topicLen+1, sizeof(char));
proposal for line 78: fullTopicStr[topicLen] = '\0';
Best regards
Walter
The text was updated successfully, but these errors were encountered: