252f3d1959
- cleanup from ports/24743, Submitted by: knarf@camelot.de - patch from ports/30298, Submitted by: pm@clabs.at
12 lines
414 B
C
12 lines
414 B
C
--- lib/xgethostname.c Tue Sep 4 00:51:26 2001
|
|
+++ lib/xgethostname.c.new Tue Sep 4 00:55:39 2001
|
|
@@ -63,7 +63,7 @@
|
|
if (err == 0 && hostname[k] == '\0')
|
|
break;
|
|
#ifdef ENAMETOOLONG
|
|
- else if (err != 0 && errno != ENAMETOOLONG && errno != 0)
|
|
+ else if (err != 0 && errno != ENAMETOOLONG && errno != ENOMEM && errno != 0)
|
|
error (EXIT_FAILURE, errno, "gethostname");
|
|
#endif
|
|
size *= 2;
|
|
|