summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index f5bdcd1..3f8f903 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -398,7 +398,7 @@ int start_interactive( bool colors, const char *host, unsigned short port, FILE
void print_guessed_env( bool human_readable )
{
char hostname[100];
- gethostname( hostname, sizeof( hostname ) );
+ system_hostname( hostname, sizeof( hostname ) );
unsigned int nofCpus = system_available_cpus( );
unsigned int nofPhysMem = system_phys_memory( );
char os_name[100];