if (NULL != (tmp = hv_fetch (values, "time", 4, 0))) {
list.time = (time_t)SvIV (*tmp);
}
- else {
- list.time = time (NULL);
- }
if (NULL != (tmp = hv_fetch (values, "host", 4, 0))) {
sstrncpy (list.host, SvPV_nolen (*tmp), sizeof (list.host));
XSRETURN_EMPTY;
}
- plugin_log (SvIV (ST (0)), SvPV_nolen (ST (1)));
+ plugin_log (SvIV (ST (0)), "%s", SvPV_nolen (ST (1)));
XSRETURN_YES;
} /* static XS (Collectd_plugin_log) */