summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9382ca1)
raw | patch | inline | side by side (parent: 9382ca1)
author | Florian Forster <octo@collectd.org> | |
Fri, 21 Nov 2014 15:03:22 +0000 (16:03 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 6 Jul 2015 12:07:11 +0000 (14:07 +0200) |
src/mqtt.c | patch | blob | history |
diff --git a/src/mqtt.c b/src/mqtt.c
index 3142bf3dd84e81cb262e35d3168aa7a8d2acde71..bfa2fdb9f4ec69eef00c42a565b7539f885c3582 100644 (file)
--- a/src/mqtt.c
+++ b/src/mqtt.c
return (status);
}
- status = publish (conf, topic, payload, sizeof (payload));
+ status = publish (conf, topic, payload, strlen (payload) + 1);
if (status != 0)
{
ERROR ("mqtt plugin: publish failed: %s", mosquitto_strerror (status));