Auto-Merge pull request #2736 from rpv-tomsk/collectd-collectd-5.8
authorcollectd bot <32910397+collectd-bot@users.noreply.github.com>
Thu, 29 Mar 2018 19:17:13 +0000 (21:17 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Mar 2018 19:17:13 +0000 (21:17 +0200)
Automatically merged due to "Automerge" label

src/uuid.c

index 4846841..1cb9027 100644 (file)
@@ -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;
   }