summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2015-06-11 20:59:00 +0200
committerAndreas Baumann <abaumann@yahoo.com>2015-06-11 20:59:00 +0200
commitc86834d40fa6b07828b10e2c6d8d2c6bd35fe116 (patch)
treeafca67b9f4287e07c12e076a96f359e0210edf6f /src/cli.c
parent365d5c59d76831b7ec0d6c3ebe49ef1e3793ac7c (diff)
downloadbiruda-c86834d40fa6b07828b10e2c6d8d2c6bd35fe116.tar.gz
biruda-c86834d40fa6b07828b10e2c6d8d2c6bd35fe116.tar.bz2
replaced gethostname on Windows with GetComputerNameEx
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];