diff options
author | nectar <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
commit | 0b64e1476ba01c6ba095af7d0623e93362281a12 (patch) | |
tree | 736595316c161b3d1ae559f331feaa6ba12b500e /lib/libc/net/gethostbydns.c | |
parent | 5ce8f7673e9083fdec888025823478cd3faf1ed7 (diff) | |
download | FreeBSD-src-0b64e1476ba01c6ba095af7d0623e93362281a12.zip FreeBSD-src-0b64e1476ba01c6ba095af7d0623e93362281a12.tar.gz |
Back out the `hiding' of strlcpy and strlcat. Several people
vocally objected to this safety belt.
Diffstat (limited to 'lib/libc/net/gethostbydns.c')
-rw-r--r-- | lib/libc/net/gethostbydns.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 9eeba2f..02cd223 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -60,7 +60,6 @@ static char fromrcsid[] = "From: Id: gethnamaddr.c,v 8.23 1998/04/07 04:59:46 vi #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include "namespace.h" #include <sys/types.h> #include <sys/param.h> #include <sys/socket.h> @@ -79,7 +78,6 @@ __FBSDID("$FreeBSD$"); #include <syslog.h> #include <stdarg.h> #include <nsswitch.h> -#include "un-namespace.h" #include "res_config.h" @@ -676,7 +674,7 @@ _dns_gethostbyaddr(void *rval, void *cb_data, va_list ap) uaddr[n] & 0xf, (uaddr[n] >> 4) & 0xf)); } - _strlcat(qbuf, "ip6.arpa", sizeof(qbuf)); + strlcat(qbuf, "ip6.arpa", sizeof(qbuf)); break; default: abort(); @@ -688,7 +686,7 @@ _dns_gethostbyaddr(void *rval, void *cb_data, va_list ap) n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf->buf, sizeof buf->buf); if (n < 0 && af == AF_INET6) { *qp = '\0'; - _strlcat(qbuf, "ip6.int", sizeof(qbuf)); + strlcat(qbuf, "ip6.int", sizeof(qbuf)); n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf->buf, sizeof buf->buf); } |