X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fnotify_desktop.c;h=e391cf275c04410ac76b67bbf6c896977f0fc74f;hp=d167fbfe69fcdf4b02d095a8be07384b9199017c;hb=7111bb6df7628edce3a8e538b386fbe27633a191;hpb=c3d354c58d56c4b2bb4138a227f3546928bd84f2 diff --git a/src/notify_desktop.c b/src/notify_desktop.c index d167fbfe..e391cf27 100644 --- a/src/notify_desktop.c +++ b/src/notify_desktop.c @@ -93,12 +93,12 @@ static int c_notify(const notification_t *n, timeout = fail_timeout; } - ssnprintf(summary, sizeof(summary), "collectd %s notification", - (NOTIF_FAILURE == n->severity) - ? "FAILURE" - : (NOTIF_WARNING == n->severity) - ? "WARNING" - : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN"); + snprintf(summary, sizeof(summary), "collectd %s notification", + (NOTIF_FAILURE == n->severity) + ? "FAILURE" + : (NOTIF_WARNING == n->severity) + ? "WARNING" + : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN"); notification = notify_notification_new(summary, n->message, NULL #if NOTIFY_CHECK_VERSION(0, 7, 0)