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
/
xmms.c
diff --git
a/src/xmms.c
b/src/xmms.c
index
1e646d2
..
7f3edf0
100644
(file)
--- a/
src/xmms.c
+++ b/
src/xmms.c
@@
-37,8
+37,8
@@
static void cxmms_submit (const char *type, gauge_t 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, "xmms"
);
+ s
strncpy (vl.host, hostname_g, sizeof (vl.host)
);
+ s
strncpy (vl.plugin, "xmms", sizeof (vl.plugin)
);
plugin_dispatch_values (type, &vl);
} /* void cxmms_submit */
plugin_dispatch_values (type, &vl);
} /* void cxmms_submit */