From 5b389481e6d0e6d942c9281e1c066f4fbc071cc0 Mon Sep 17 00:00:00 2001 From: rfm Date: Fri, 21 Nov 2014 17:41:44 +0000 Subject: [PATCH] hostname fixes git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38194 72102866-910b-0410-8b05-ffd578937521 --- EcCommand.m | 2 +- EcConsole.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EcCommand.m b/EcCommand.m index cc2d995..101af5c 100644 --- a/EcCommand.m +++ b/EcCommand.m @@ -1762,7 +1762,7 @@ static NSString* cmdWord(NSArray* a, unsigned int pos) { exit(0); } - host = RETAIN([[NSHost currentHost] name]); + host = RETAIN([[NSHost currentHost] wellKnownName]); clients = [[NSMutableArray alloc] initWithCapacity: 10]; launches = [[NSMutableDictionary alloc] initWithCapacity: 10]; launching = [[NSMutableSet alloc] initWithCapacity: 10]; diff --git a/EcConsole.m b/EcConsole.m index 289e581..5128661 100644 --- a/EcConsole.m +++ b/EcConsole.m @@ -770,7 +770,7 @@ static BOOL commandIsRepeat (NSString *string) } if (nil != (host = [NSHost controlWellKnownName])) { - host = [[NSHost hostWithWellKnownName: host] name]; + host = [[NSHost hostWithWellKnownName: host] wellKnownName]; } if (nil == host) {