Fix crash when current host not found

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-07-26 16:33:09 +00:00
parent 9d8c0d8391
commit b680f3e314
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Jul 21 23:25:14 2001 Wim Oudshoorn
* Source/NSHost.m ([NSHost +hostWithName:]):
Added forgotten argument to NSLog().
2001-07-19 Richard Frith-Macdonald <rfm@gnu.org>
* Source/UnixFileHandle.m: Don't abort aread/write attempts that

View file

@ -309,7 +309,7 @@ static NSString *myHostName = nil;
@"for this machine (%@) - using loopback address "
@"(127.0.0.1)", name);
NSLog(@"You probably need a line like '"
@"127.0.0.1 %@ localhost' in your /etc/hosts file");
@"127.0.0.1 %@ localhost' in your /etc/hosts file", name);
host = [self hostWithAddress: @"127.0.0.1"];
[host _addName: name];
}