Merge pull request #2742 from elfiesmelfie/ipmi_bugfix_sensor_option
[collectd.git] / src / tail.c
index f7f061a..fbba478 100644 (file)
@@ -34,7 +34,7 @@
 /*
  *  <Plugin tail>
  *    <File "/var/log/exim4/mainlog">
- *      PluginName "mail"
+ *      Plugin "mail"
  *      Instance "exim"
  *      Interval 60
  *     <Match>
@@ -233,7 +233,7 @@ static int ctail_config_add_file(oconfig_item_t *ci) {
     oconfig_item_t *option = ci->children + i;
     int status = 0;
 
-    if (strcasecmp("PluginName", option->key) == 0)
+    if (strcasecmp("Plugin", option->key) == 0)
       status = cf_util_get_string (option, &plugin_name);
     else if (strcasecmp("Instance", option->key) == 0)
       status = cf_util_get_string(option, &plugin_instance);
@@ -317,7 +317,7 @@ static int ctail_init(void) {
   }
 
   for (size_t i = 0; i < tail_match_list_num; i++) {
-    ssnprintf(str, sizeof(str), "tail-%zu", i);
+    snprintf(str, sizeof(str), "tail-%zu", i);
 
     plugin_register_complex_read(NULL, str, ctail_read,
                                  tail_match_list_intervals[i],