X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftape.c;h=32b42965c55d5e31ca6a5e53f54554cd0842aa54;hb=8eb9e6285f394569d7fe6ad43a0f4e5f9bca454f;hp=67750efc43868eb9134447447dbac7a4a44109e5;hpb=5f9ec13b946733ff4e1edf2d8e3b7a22311dd894;p=collectd.git diff --git a/src/tape.c b/src/tape.c index 67750efc..32b42965 100644 --- a/src/tape.c +++ b/src/tape.c @@ -68,9 +68,8 @@ static void tape_submit (const char *plugin_instance, vl.values = values; vl.values_len = 2; - vl.time = time (NULL); - strcpy (vl.host, hostname_g); - strcpy (vl.plugin, "tape"); + sstrncpy (vl.host, hostname_g, sizeof (vl.host)); + sstrncpy (vl.plugin, "tape", sizeof (vl.plugin)); sstrncpy (vl.plugin_instance, plugin_instance, sizeof (vl.plugin_instance)); sstrncpy (vl.type, type, sizeof (vl.type));