X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fusers.c;h=d0bd63cdb540ef2bc8d5e145e386f2590e604ef7;hb=66e0fe82631c8a8e44ffcad8ffd378fab83bc83f;hp=4686443e4b25e3d31391bcf0d3a049aa2482c406;hpb=b88f9d8a83ff838523a21e4b191f447888d651cd;p=collectd.git diff --git a/src/users.c b/src/users.c index 4686443e..d0bd63cd 100644 --- a/src/users.c +++ b/src/users.c @@ -49,8 +49,8 @@ static void users_submit (gauge_t value) vl.values = values; vl.values_len = 1; vl.time = time (NULL); - strcpy (vl.host, hostname_g); - strcpy (vl.plugin, "users"); + sstrncpy (vl.host, hostname_g, sizeof (vl.host)); + sstrncpy (vl.plugin, "users", sizeof (vl.plugin)); plugin_dispatch_values ("users", &vl); } /* void users_submit */