X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnotify_desktop.c;h=e391cf275c04410ac76b67bbf6c896977f0fc74f;hb=0d9f395599348e735e6f461e1c328293bef0d060;hp=d167fbfe69fcdf4b02d095a8be07384b9199017c;hpb=c6baff42e7e8e547eb7ca7817c0e0e07ccea95db;p=collectd.git 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)