bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] NSHost.m


From: Wim Oudshoorn
Subject: [PATCH] NSHost.m
Date: Wed, 25 Jul 2001 22:00:32 +0200 (CEST)

When GNUstep can not resolve the hostname it will crash.
This is caused by a forgotten argument to NSLOg
See patch below:


---------------------------------------------
Sat Jul 21 23:25:14 2001  Wim Oudshoorn
        * Source/NSHost.m ([NSHost +hostWithName:]):
        Added forgotten argument to NSLog().


--- /home/wim/src/cvs/base/Source/NSHost.m      Thu Jan 18 09:27:00 2001
+++ Source/NSHost.m     Sat Jul 21 23:25:14 2001
@@ -309,7 +309,8 @@
                    @"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];
                }







reply via email to

[Prev in Thread] Current Thread [Next in Thread]