diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2015-06-11 20:59:00 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2015-06-11 20:59:00 +0200 |
commit | c86834d40fa6b07828b10e2c6d8d2c6bd35fe116 (patch) | |
tree | afca67b9f4287e07c12e076a96f359e0210edf6f /src/worker.c | |
parent | 365d5c59d76831b7ec0d6c3ebe49ef1e3793ac7c (diff) | |
download | biruda-c86834d40fa6b07828b10e2c6d8d2c6bd35fe116.tar.gz biruda-c86834d40fa6b07828b10e2c6d8d2c6bd35fe116.tar.bz2 |
replaced gethostname on Windows with GetComputerNameEx
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c index 4360432..733718c 100644 --- a/src/worker.c +++ b/src/worker.c @@ -335,7 +335,7 @@ static char *expand_system_variables( const char *s ) state = COPYING; } else if( strncmp( var, "HOST", 4 ) == 0 ) { char hostname[100]; - gethostname( hostname, sizeof( hostname ) ); + system_hostname( hostname, sizeof( hostname ) ); strncpy( d, hostname, strlen( hostname ) ); d += strlen( hostname ); state = COPYING; |