summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getnetbydns.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-06-27 08:22:03 +0000
committerpeter <peter@FreeBSD.org>1997-06-27 08:22:03 +0000
commit63d61ea6e9374a89adcb36c3f5c3b759b9a82c41 (patch)
tree42dba341377c853de43567a145b2a902b2039b15 /lib/libc/net/getnetbydns.c
parent20250d8619bb0419032ebda7ca41de01e60bea7f (diff)
downloadFreeBSD-src-63d61ea6e9374a89adcb36c3f5c3b759b9a82c41.zip
FreeBSD-src-63d61ea6e9374a89adcb36c3f5c3b759b9a82c41.tar.gz
Merge in bind-4.9.6 resolver changes. Note that they resolve the
overflow problem differently.
Diffstat (limited to 'lib/libc/net/getnetbydns.c')
-rw-r--r--lib/libc/net/getnetbydns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/getnetbydns.c b/lib/libc/net/getnetbydns.c
index 6029cd6..2228a5c 100644
--- a/lib/libc/net/getnetbydns.c
+++ b/lib/libc/net/getnetbydns.c
@@ -60,7 +60,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
-static char rcsid[] = "$Id$";
+static char rcsid[] = "$Id: getnetbydns.c,v 1.10 1997/02/22 15:00:10 peter Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -117,7 +117,7 @@ getnetanswer(answer, anslen, net_i)
char aux1[30], aux2[30], ans[30], *in, *st, *pauxt, *bp, **ap,
*paux1 = &aux1[0], *paux2 = &aux2[0], flag = 0;
static struct netent net_entry;
-static char *net_aliases[MAXALIASES], netbuf[BUFSIZ+1];
+static char *net_aliases[MAXALIASES], netbuf[PACKETSZ];
/*
* find first satisfactory answer
OpenPOWER on IntegriCloud