projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'collectd-4.3' into collectd-4.4
[collectd.git]
/
src
/
perl.c
diff --git
a/src/perl.c
b/src/perl.c
index
2bd03af
..
597368f
100644
(file)
--- a/
src/perl.c
+++ b/
src/perl.c
@@
-559,7
+559,7
@@
static int pplugin_dispatch_values (pTHX_ char *name, HV *values)
list.host[DATA_MAX_NAME_LEN - 1] = '\0';
}
else {
- s
trcpy (list.host, hostname_g
);
+ s
strncpy (list.host, hostname_g, sizeof (list.host)
);
}
if (NULL != (tmp = hv_fetch (values, "plugin", 6, 0))) {