Date: Sun, 20 May 2001 00:02:08 -0400 From: Kevin Way <kevin.way@overtone.org> To: dburr@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG, chuchr@FreeBSD.ORG Subject: Re: ports/26909: a2ps cannot handle long hostnames Message-ID: <20010520000208.A82127@bean.overtone.org> In-Reply-To: <200104292228.f3TMSoM74992@freefall.freebsd.org>; from dburr@FreeBSD.ORG on Sun, Apr 29, 2001 at 03:28:50PM -0700 References: <200104292228.f3TMSoM74992@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I believe the following patch solves pr/26909 properly. I'd appreciate if it could be reviewed and committed/rejected as appropriate. Kevin Way --- lib/xgethostname.c.orig Sat Aug 28 13:11:35 1999 +++ lib/xgethostname.c Sat May 19 23:54:39 2001 @@ -22,6 +22,7 @@ #endif #include <sys/types.h> +#include <sys/param.h> #include <errno.h> #ifndef errno @@ -38,7 +39,7 @@ int gethostname (); #ifndef INITIAL_HOSTNAME_LENGTH -# define INITIAL_HOSTNAME_LENGTH 34 +# define INITIAL_HOSTNAME_LENGTH MAXHOSTNAMELEN + 1 #endif char=20 --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7B0HAKxA01iDoLN4RAs6oAJ46wrNhib59O0AGUJjPlJPuGRftzACfdQVc 37VACLQYMv64WHjRfFuGwXQ= =iF72 -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010520000208.A82127>