summaryrefslogtreecommitdiff
path: root/usr.sbin/named/libresolv/res_query.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-03-14 03:40:35 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-03-14 03:40:35 +0000
commita40e528c1e272d022f99f555d417a4a1bcdb9e73 (patch)
tree8a1ddc55420d9c0a5653bc54ef4147f9f2485462 /usr.sbin/named/libresolv/res_query.c
parent0754fde2039f3a8ebbfa3d89108a5c2c5b1ecaf1 (diff)
Switch to linking with the resolver in libc.
Pull a few of our changes into this resolver; don't delete it yet. I'm not entirely sure it should be deleted, simply because of the baseline it provides against our massivelt modified libc resolver.
Diffstat (limited to 'usr.sbin/named/libresolv/res_query.c')
-rw-r--r--usr.sbin/named/libresolv/res_query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/named/libresolv/res_query.c b/usr.sbin/named/libresolv/res_query.c
index 39882c90241..852572b1bec 100644
--- a/usr.sbin/named/libresolv/res_query.c
+++ b/usr.sbin/named/libresolv/res_query.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_query.c,v 1.1 1997/03/12 10:42:10 downsj Exp $ */
+/* $OpenBSD: res_query.c,v 1.2 1997/03/14 03:40:34 downsj Exp $ */
/*
* ++Copyright++ 1988, 1993
@@ -60,7 +60,7 @@
static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $";
#else
-static char rcsid[] = "$OpenBSD: res_query.c,v 1.1 1997/03/12 10:42:10 downsj Exp $";
+static char rcsid[] = "$OpenBSD: res_query.c,v 1.2 1997/03/14 03:40:34 downsj Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -387,8 +387,8 @@ hostalias(name)
break;
for (cp2 = cp1 + 1; *cp2 && !isspace(*cp2); ++cp2)
;
- abuf[sizeof(abuf) - 1] = *cp2 = '\0';
strncpy(abuf, cp1, sizeof(abuf) - 1);
+ abuf[sizeof(abuf) - 1] = *cp2 = '\0';
fclose(fp);
return (abuf);
}