freebsd-ports/print/a2ps-letter/files/patch-xgethostname.c
Dirk Meyer 252f3d1959 - add option WITH_EMACS
- cleanup from ports/24743, Submitted by: knarf@camelot.de
- patch from ports/30298, Submitted by: pm@clabs.at
2003-06-11 21:21:29 +00:00

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;