X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Flogfile.c;h=de9b1f75b19512632ef7a9649470fca5ac637620;hp=e5807f1b4ba5ab6b9a9828cd1929b4547a41dd89;hb=7111bb6df7628edce3a8e538b386fbe27633a191;hpb=c144ae4659e129a929afb67706a54604220fef43 diff --git a/src/logfile.c b/src/logfile.c index e5807f1b..de9b1f75 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -163,7 +163,7 @@ static int logfile_notification(const notification_t *n, int buf_len = sizeof(buf); int status; - status = ssnprintf( + status = snprintf( buf_ptr, buf_len, "Notification: severity = %s", (n->severity == NOTIF_FAILURE) ? "FAILURE" @@ -177,7 +177,7 @@ static int logfile_notification(const notification_t *n, #define APPEND(bufptr, buflen, key, value) \ if ((buflen > 0) && (strlen(value) > 0)) { \ - status = ssnprintf(bufptr, buflen, ", %s = %s", key, value); \ + status = snprintf(bufptr, buflen, ", %s = %s", key, value); \ if (status > 0) { \ bufptr += status; \ buflen -= status; \