X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcollectd-tg.c;h=08bb74877de4ad9b375585fbc2175adf501d3e95;hb=c346dc6b18ee4215ccab911c1732c5c39a961baf;hp=82cdce5ddbc047e6dbf6cb082ac8337df30fc622;hpb=633c3966f770e4d46651a2fe219a18d8a9907a9f;p=collectd.git diff --git a/src/collectd-tg.c b/src/collectd-tg.c index 82cdce5d..08bb7487 100644 --- a/src/collectd-tg.c +++ b/src/collectd-tg.c @@ -99,7 +99,7 @@ static void exit_usage (int exit_status) /* {{{ */ " -h Print usage information (this output).\n" "\n" "Copyright (C) 2010-2012 Florian Forster\n" - "Licensed under the GNU General Public License, version 2 (GPLv2)\n", + "Licensed under the MIT license.\n", DEF_NUM_VALUES, DEF_NUM_HOSTS, DEF_NUM_PLUGINS, DEF_INTERVAL, NET_DEFAULT_V6_ADDR, NET_DEFAULT_PORT); @@ -188,6 +188,7 @@ static lcc_value_list_t *create_value_list (void) /* {{{ */ strncpy (vl->identifier.type, (vl->values_types[0] == LCC_TYPE_GAUGE) ? "gauge" : "derive", sizeof (vl->identifier.type)); + vl->identifier.type[sizeof (vl->identifier.type) - 1] = 0; snprintf (vl->identifier.type_instance, sizeof (vl->identifier.type_instance), "ti%li", random ());