fix null chars in hostname log message

This commit is contained in:
Megamouse committed 2021-04-19 21:54:27 +02:00
1 parent 3c4c830e20
commit 01d14aed80
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,7 @@ bool np_handler::discover_ip_address()
return false;
}
nph_log.notice("Hostname was determined to be %s", hostname);
nph_log.notice("Hostname was determined to be %s", hostname.c_str());
hostent *host = gethostbyname(hostname.data());
if (!host)