projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/utils_dns.c: Fix version information for __NAMESER >= 19961001.
[collectd.git]
/
src
/
email.c
diff --git
a/src/email.c
b/src/email.c
index
f5a544a
..
b718cf5
100644
(file)
--- a/
src/email.c
+++ b/
src/email.c
@@
-39,6
+39,8
@@
#include "configfile.h"
#include "configfile.h"
+#include <stddef.h>
+
#if HAVE_LIBPTHREAD
# include <pthread.h>
#endif
#if HAVE_LIBPTHREAD
# include <pthread.h>
#endif
@@
-731,8
+733,8
@@
static void email_submit (const char *type, const char *type_instance, gauge_t v
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, "email"
);
+ s
strncpy (vl.host, hostname_g, sizeof (vl.host)
);
+ s
strncpy (vl.plugin, "email", sizeof (vl.plugin)
);
strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
plugin_dispatch_values (type, &vl);
strncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
plugin_dispatch_values (type, &vl);