thomasnordquist / MQTT-Explorer

An all-round MQTT client that provides a structured topic overview
https://mqtt-explorer.com
Other
3.09k stars 291 forks source link

String of Topic and JSON Payload isn't null-terminated #688

Open PlasmX opened 1 year ago

PlasmX commented 1 year ago

Hey, I was testing around with MQTT Explorer 0.4.0 beta and a Bosch XDK110. As I printed the topic of a MQTT message, it included the payload and some other stuff in the RAM console until printf() got to a null terminator. If I send MQTT messages from a browser via MQTT.js implementation it doesn't occure and everything works fine. So I don't think it's a problem with the MQTTimplementation of the XDK110. Therefore I think neither the topic nor the payload string is null terminated.