diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/gethostbydns.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 24de7ff..33a0749 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -478,7 +478,7 @@ _dns_gethostbyname(void *rval, void *cb_data, va_list ap) querybuf *buf; const char *cp; char *bp, *ep; - int n, size, type, len; + int n, size, type; char abuf[MAXDNAME]; name = va_arg(ap, const char *); @@ -571,8 +571,6 @@ _dns_gethostbyname(void *rval, void *cb_data, va_list ap) } strncpy(hostbuf, name, MAXDNAME); hostbuf[MAXDNAME] = '\0'; - bp = hostbuf + MAXDNAME; - len = sizeof hostbuf - MAXDNAME; host.h_name = hostbuf; host.h_aliases = host_aliases; host_aliases[0] = NULL; |