projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Unified string handling.
[collectd.git]
/
src
/
serial.c
diff --git
a/src/serial.c
b/src/serial.c
index
fb30fc4
..
1c5d5a5
100644
(file)
--- a/
src/serial.c
+++ b/
src/serial.c
@@
-44,7
+44,7
@@
static void serial_submit (const char *type_instance,
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "serial");
strcpy (vl.type, "serial_octets");
- strncpy (vl.type_instance, type_instance,
+ s
s
trncpy (vl.type_instance, type_instance,
sizeof (vl.type_instance));
plugin_dispatch_values (&vl);