projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libcollectclient: snprintf already NUL-terminates
[collectd.git]
/
src
/
notify_nagios.c
diff --git
a/src/notify_nagios.c
b/src/notify_nagios.c
index
c95f7cb
..
bea0faa
100644
(file)
--- a/
src/notify_nagios.c
+++ b/
src/notify_nagios.c
@@
-141,7
+141,7
@@
static int nagios_notify(const notification_t *n, /* {{{ */
break;
}
- s
s
nprintf(buffer, sizeof(buffer),
+ snprintf(buffer, sizeof(buffer),
"[%.0f] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n",
CDTIME_T_TO_DOUBLE(n->time), n->host, &svc_description[1], code,
n->message);