From: deraadt Date: Thu, 6 Feb 1997 13:34:45 +0000 (+0000) Subject: expand hostname to MAXHOSTNAMELEN X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=18d649d852ba28915d487578516e96ba3bde8684;p=openbsd expand hostname to MAXHOSTNAMELEN --- diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c index f515bed2d6e..9d54a7af410 100644 --- a/libexec/uucpd/uucpd.c +++ b/libexec/uucpd/uucpd.c @@ -42,7 +42,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)uucpd.c 5.10 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$Id: uucpd.c,v 1.7 1996/12/22 03:41:24 tholo Exp $"; +static char rcsid[] = "$Id: uucpd.c,v 1.8 1997/02/06 13:34:45 deraadt Exp $"; #endif /* not lint */ /* @@ -272,7 +272,7 @@ struct passwd *pw; struct sockaddr_in *sin; { char line[32]; - char remotehost[32]; + char remotehost[MAXHOSTNAMELEN]; int wtmp, f; struct hostent *hp = gethostbyaddr((char *)&sin->sin_addr, sizeof (struct in_addr), AF_INET);