--- lib/xgethostname.c.orig Tue Sep 4 00:51:26 2001 +++ lib/xgethostname.c Tue Sep 4 00:55:39 2001 @@ -21,6 +21,7 @@ # include #endif +#include #include #include @@ -38,7 +39,7 @@ int gethostname (); #ifndef INITIAL_HOSTNAME_LENGTH -# define INITIAL_HOSTNAME_LENGTH 34 +# define INITIAL_HOSTNAME_LENGTH MAXHOSTNAMELEN #endif char * @@ -63,7 +64,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; el='vcs-git' href='https://www.csie.ntu.edu.tw/~b01902062/git/freebsd-ports-gnome' title='freebsd-ports-gnome Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Update to 8.12sat2006-07-082-4/+4
* - Update to 8.11sat2006-05-192-8/+7
* Update my e-mail addresssat2006-05-091-1/+1
* - Update to 8.10anray2006-05-012-16/+16
* - Need x11-toolkits/iwidgets in order to run.anray2006-05-011-1/+3
* Reset vsevolod as maintainer due to unreponsiveness. We hope to see himlinimon2006-04-151-1/+1
* SHA256ifyedwin2006-01-241-0/+1
* - Update to 7.3vsevolod2005-10-122-7/+4
* Update to 7.1.vsevolod2005-09-032-4/+4
* Update to 7.0.vsevolod2005-08-292-4/+6
* Update to 6.14 and fix distfile fetching.vsevolod2005-08-123-5/+5
* Update to 6.13.vsevolod2005-07-302-5/+4
* Update my email address.vsevolod2005-07-221-1/+1