X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fsmart.c;h=627c16d5537378dbdc5a9a393dca74f62c974549;hp=2dfb924faa2186deeaf1b50295c82256ef08473d;hb=54619dc85fd308b21ed09a0271e5c7383c7921b9;hpb=ee771cb0c5df11fad393de41571effb9708f0873 diff --git a/src/smart.c b/src/smart.c index 2dfb924f..627c16d5 100644 --- a/src/smart.c +++ b/src/smart.c @@ -116,9 +116,9 @@ static void handle_attribute(SkDisk *d, const SkSmartAttributeParsedData *a, sstrncpy(notif.host, hostname_g, sizeof(notif.host)); sstrncpy(notif.plugin_instance, name, sizeof(notif.plugin_instance)); sstrncpy(notif.type_instance, a->name, sizeof(notif.type_instance)); - snprintf(notif.message, sizeof(notif.message), - "attribute %s is below allowed threshold (%d < %d)", a->name, - a->current_value, a->threshold); + ssnprintf(notif.message, sizeof(notif.message), + "attribute %s is below allowed threshold (%d < %d)", a->name, + a->current_value, a->threshold); plugin_dispatch_notification(¬if); } }