X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fthermal.c;h=5d3da89254655b9b1434af427ddbf30c6f5b7716;hb=0ec776abf45ef3989f38d966e74b588f9ef15ebe;hp=6cbe69e353c5ec31cc4213314ac672b90fdb926a;hpb=d2c70797b18c2b532119b1264841f551e013dcad;p=collectd.git diff --git a/src/thermal.c b/src/thermal.c index 6cbe69e3..5d3da892 100644 --- a/src/thermal.c +++ b/src/thermal.c @@ -53,6 +53,7 @@ static void thermal_submit (const char *plugin_instance, enum dev_type dt, vl.values = &vt; vl.values_len = 1; + sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "thermal", sizeof(vl.plugin)); sstrncpy (vl.plugin_instance, plugin_instance, sizeof(vl.plugin_instance));