X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnotify_nagios.c;h=f744d486156bfba6255fae5a10ee4d1c89750639;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hp=c95f7cb99bf1ab139670a85ccd1e2b51c603d5ff;hpb=64b8150edec2271bb110f36e70915fdd87d9cac2;p=collectd.git diff --git a/src/notify_nagios.c b/src/notify_nagios.c index c95f7cb9..f744d486 100644 --- a/src/notify_nagios.c +++ b/src/notify_nagios.c @@ -141,10 +141,10 @@ static int nagios_notify(const notification_t *n, /* {{{ */ break; } - ssnprintf(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); + 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); return nagios_print(buffer); } /* }}} int nagios_notify */