X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Femail.c;h=b718cf5c9eb184633dc37da18897f6bd4c65b6d7;hb=acc28b296c39e3d2e970f62331088e0868cf8998;hp=869b7c36aa620cff5f7ae2f2d806d79868084eea;hpb=b7d4060cacd04d4bd0e174e85f91ca5afcacf01d;p=collectd.git diff --git a/src/email.c b/src/email.c index 869b7c36..b718cf5c 100644 --- a/src/email.c +++ b/src/email.c @@ -733,8 +733,8 @@ static void email_submit (const char *type, const char *type_instance, gauge_t v vl.values = values; vl.values_len = 1; vl.time = time (NULL); - strcpy (vl.host, hostname_g); - strcpy (vl.plugin, "email"); + sstrncpy (vl.host, hostname_g, sizeof (vl.host)); + sstrncpy (vl.plugin, "email", sizeof (vl.plugin)); strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance)); plugin_dispatch_values (type, &vl);