From: Pavel Rochnyack Date: Thu, 29 Mar 2018 18:27:14 +0000 (+0700) Subject: uuid plugin: Fixed hostname setting X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9d806fa4c3131d72e93805beed06b74ad5ade0cd;p=collectd.git uuid plugin: Fixed hostname setting Closes: #2723 References: #2467 --- diff --git a/src/uuid.c b/src/uuid.c index 4846841b..1cb90270 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -193,7 +193,7 @@ static int uuid_init(void) { char *uuid = uuid_get_local(); if (uuid) { - sstrncpy(hostname_g, uuid, DATA_MAX_NAME_LEN); + hostname_set(uuid); sfree(uuid); return 0; }