projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
v5upgrade target: Don't use "memcpy" to copy static strings.
[collectd.git]
/
src
/
target_v5upgrade.c
diff --git
a/src/target_v5upgrade.c
b/src/target_v5upgrade.c
index
e7f0599
..
670efce
100644
(file)
--- a/
src/target_v5upgrade.c
+++ b/
src/target_v5upgrade.c
@@
-68,15
+68,15
@@
static int v5_df (const data_set_t *ds, value_list_t *vl) /* {{{ */
v5_swap_instances (&new_vl);
/* Change the type to "df_complex" */
v5_swap_instances (&new_vl);
/* Change the type to "df_complex" */
-
mem
cpy (new_vl.type, "df_complex", sizeof (new_vl.type));
+
sstrn
cpy (new_vl.type, "df_complex", sizeof (new_vl.type));
/* Dispatch two new value lists instead of this one */
new_vl.values[0].gauge = vl->values[0].gauge;
/* Dispatch two new value lists instead of this one */
new_vl.values[0].gauge = vl->values[0].gauge;
-
mem
cpy (new_vl.type_instance, "used", sizeof (new_vl.type_instance));
+
sstrn
cpy (new_vl.type_instance, "used", sizeof (new_vl.type_instance));
plugin_dispatch_values (&new_vl);
new_vl.values[0].gauge = vl->values[1].gauge;
plugin_dispatch_values (&new_vl);
new_vl.values[0].gauge = vl->values[1].gauge;
-
mem
cpy (new_vl.type_instance, "free", sizeof (new_vl.type_instance));
+
sstrn
cpy (new_vl.type_instance, "free", sizeof (new_vl.type_instance));
plugin_dispatch_values (&new_vl);
/* Abort processing */
plugin_dispatch_values (&new_vl);
/* Abort processing */