summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getnetbyht.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/getnetbyht.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/getnetbyht.c')
-rw-r--r--lib/libc/net/getnetbyht.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/net/getnetbyht.c b/lib/libc/net/getnetbyht.c
index cbc45b5..f7b7b10 100644
--- a/lib/libc/net/getnetbyht.c
+++ b/lib/libc/net/getnetbyht.c
@@ -43,6 +43,8 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getnetent.c 8.1 (Berkeley) 6/4/93";
+static char orig_rcsid[] = "From: Id: getnetent.c,v 8.4 1997/06/01 20:34:37 vixie Exp";
+static chat rcsid[] = "$Id$";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -94,7 +96,7 @@ getnetent()
if (netf == NULL && (netf = fopen(_PATH_NETWORKS, "r" )) == NULL)
return (NULL);
again:
- p = fgets(line, BUFSIZ, netf);
+ p = fgets(line, sizeof line, netf);
if (p == NULL)
return (NULL);
if (*p == '#')
OpenPOWER on IntegriCloud