X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnotify_desktop.c;h=e430b681c398257e350dab8efb01769d02f49520;hb=48622c3d7c8c0d3ab07cda8a1947c33bfe31df73;hp=849b1d4cb2331d5f2b4b300d7015fe5c4ad12449;hpb=25824c65721f0f21cadf1607fad367c7e7831816;p=collectd.git diff --git a/src/notify_desktop.c b/src/notify_desktop.c index 849b1d4c..e430b681 100644 --- a/src/notify_desktop.c +++ b/src/notify_desktop.c @@ -93,16 +93,16 @@ static int c_notify(const notification_t *n, timeout = fail_timeout; } - snprintf(summary, sizeof(summary), "collectd %s notification", - (NOTIF_FAILURE == n->severity) - ? "FAILURE" - : (NOTIF_WARNING == n->severity) - ? "WARNING" - : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN"); + ssnprintf(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) - ); + ); #else , NULL);