projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace all occurrences of `strcpy' with `sstrncpy'.
[collectd.git]
/
src
/
hddtemp.c
diff --git
a/src/hddtemp.c
b/src/hddtemp.c
index
36ada53
..
cb49577
100644
(file)
--- a/
src/hddtemp.c
+++ b/
src/hddtemp.c
@@
-449,8
+449,8
@@
static void hddtemp_submit (char *type_instance, double value)
vl.values = values;
vl.values_len = 1;
vl.time = time (NULL);
vl.values = values;
vl.values_len = 1;
vl.time = time (NULL);
- s
trcpy (vl.host, hostname_g
);
- s
trcpy (vl.plugin, "hddtemp"
);
+ s
strncpy (vl.host, hostname_g, sizeof (vl.host)
);
+ s
strncpy (vl.plugin, "hddtemp", sizeof (vl.plugin)
);
strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
plugin_dispatch_values ("temperature", &vl);
strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
plugin_dispatch_values ("temperature", &vl);