summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/ftp.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-03-11 04:01:30 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-03-11 04:01:30 +0000
commit4239b56421c9b594a78d6629974565ff8fc15c9b (patch)
treecace6eefe516230bd19a0409c1e87ad1b81f0764 /usr.bin/ftp/ftp.c
parent7de737cff3583b27b0fa95b0e13da96a6eeaf909 (diff)
getnameinfo buffer has to be NI_MAXHOST
Diffstat (limited to 'usr.bin/ftp/ftp.c')
-rw-r--r--usr.bin/ftp/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c
index 26cd2e92c99..d5273169d22 100644
--- a/usr.bin/ftp/ftp.c
+++ b/usr.bin/ftp/ftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp.c,v 1.50 2003/03/11 04:01:11 itojun Exp $ */
+/* $OpenBSD: ftp.c,v 1.51 2003/03/11 04:01:29 itojun Exp $ */
/* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */
/*
@@ -67,7 +67,7 @@
#if 0
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
#else
-static char rcsid[] = "$OpenBSD: ftp.c,v 1.50 2003/03/11 04:01:11 itojun Exp $";
+static char rcsid[] = "$OpenBSD: ftp.c,v 1.51 2003/03/11 04:01:29 itojun Exp $";
#endif
#endif /* not lint */
@@ -131,7 +131,7 @@ hookup(host, port)
int s, len, tos, error;
static char hostnamebuf[MAXHOSTNAMELEN];
struct addrinfo hints, *res, *res0;
- char hbuf[MAXHOSTNAMELEN];
+ char hbuf[NI_MAXHOST];
char *cause = "unknown";
epsv4bad = 0;