*/
#include "collectd.h"
-#include "common.h"
#include "configfile.h"
/* ... while we want the definition found in plugin.h. */
#include "plugin.h"
+#include "common.h"
#define PLUGIN_INIT 0
#define PLUGIN_READ 1
status = snprintf (buf, buf_len, "%s::%s", base_name, module);
if ((status < 0) || (status >= buf_len))
return (NULL);
- buf[buf_len] = '\0';
+ buf[buf_len - 1] = '\0';
return (buf);
} /* char *get_module_name */