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.5'
[collectd.git]
/
src
/
plugin.c
diff --git
a/src/plugin.c
b/src/plugin.c
index
bef715e
..
0ae6e44
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-830,7
+830,7
@@
int plugin_dispatch_notification (const notification_t *notif)
void plugin_log (int level, const char *format, ...)
{
void plugin_log (int level, const char *format, ...)
{
- char msg[
512
];
+ char msg[
1024
];
va_list ap;
void (*callback) (int, const char *);
va_list ap;
void (*callback) (int, const char *);
@@
-845,8
+845,8
@@
void plugin_log (int level, const char *format, ...)
#endif
va_start (ap, format);
#endif
va_start (ap, format);
- vsnprintf (msg,
512
, format, ap);
- msg[
51
1] = '\0';
+ vsnprintf (msg,
sizeof (msg)
, format, ap);
+ msg[
sizeof (msg) -
1] = '\0';
va_end (ap);
le = llist_head (list_log);
va_end (ap);
le = llist_head (list_log);