diff --git a/src/hddtemp.c b/src/hddtemp.c
index a9c094186516b699c7771249c29a026bbf2d2891..9f4a7254feede2d27d057bdf5750bb1ee3f73ba2 100644 (file)
--- a/src/hddtemp.c
+++ b/src/hddtemp.c
vl.values = values;
vl.values_len = 1;
vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "hddtemp");
- strcpy (vl.type, "temperature");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "hddtemp", sizeof (vl.plugin));
+ sstrncpy (vl.type, "temperature", sizeof (vl.type));
sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
plugin_dispatch_values (&vl);