From aca672416c7cd43f5e08df81ee16fa6fd1e5c7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Wed, 7 Nov 2018 09:41:57 +0100 Subject: [PATCH] Fix host name conversion code for SyslogLogger. See vibe-d/vibe.d#2220 --- source/vibe/core/log.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/log.d b/source/vibe/core/log.d index 2d8df7b..8aa8661 100644 --- a/source/vibe/core/log.d +++ b/source/vibe/core/log.d @@ -733,10 +733,10 @@ private string hostName() string hostName; version (Posix) { - import core.sys.posix.sys.utsname; + import core.sys.posix.sys.utsname : uname, utsname; utsname name; if (uname(&name)) return hostName; - hostName = name.nodename.to!string(); + hostName = name.nodename.ptr.to!string; import std.socket; auto ih = new InternetHost;