Treewide: replace ssnprintf with snprintf
[collectd.git] / src / ovs_events.c
index 6504234..2499cb4 100644 (file)
@@ -155,7 +155,7 @@ static char *ovs_events_get_select_params() {
       return NULL;
     }
     opt_buff = new_buff;
-    int ret = ssnprintf(opt_buff + buff_off, buff_size - buff_off, option_fmt,
+    int ret = snprintf(opt_buff + buff_off, buff_size - buff_off, option_fmt,
                         iface->name);
     if (ret < 0) {
       sfree(opt_buff);
@@ -177,7 +177,7 @@ static char *ovs_events_get_select_params() {
   }
 
   /* create OVS DB select params */
-  if (ssnprintf(params_buff, params_size, params_fmt, opt_buff) < 0)
+  if (snprintf(params_buff, params_size, params_fmt, opt_buff) < 0)
     sfree(params_buff);
 
   sfree(opt_buff);
@@ -334,7 +334,7 @@ static void ovs_events_dispatch_notification(const ovs_events_iface_info_t *ifin
   }
 
   /* fill the notification data */
-  ssnprintf(n.message, sizeof(n.message),
+  snprintf(n.message, sizeof(n.message),
             "link state of \"%s\" interface has been changed to \"%s\"",
             ifinfo->name, msg_link_status);
   sstrncpy(n.host, hostname_g, sizeof(n.host));