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) {