summaryrefslogtreecommitdiff
path: root/contrib/bind/bin/nslookup
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-08-18 01:46:58 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-08-18 01:46:58 +0000
commit87e904fdcff10f61157f1858b51abac27679f374 (patch)
tree6398719e5d84d82e8255f8c128b68bbc812097e3 /contrib/bind/bin/nslookup
parentb6f5f4423197ffd3d68e7b10c4ad52ef353ce033 (diff)
Notes
Diffstat (limited to 'contrib/bind/bin/nslookup')
-rw-r--r--contrib/bind/bin/nslookup/getinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/bind/bin/nslookup/getinfo.c b/contrib/bind/bin/nslookup/getinfo.c
index 20601e506cdf..abd747b6ae2e 100644
--- a/contrib/bind/bin/nslookup/getinfo.c
+++ b/contrib/bind/bin/nslookup/getinfo.c
@@ -82,6 +82,7 @@ static char rcsid[] = "$Id: getinfo.c,v 8.11 1998/03/19 19:30:55 halley Exp $";
#include <resolv.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "port_after.h"
@@ -319,7 +320,7 @@ GetAnswer(nsAddrPtr, queryType, msg, msglen, iquery, hostPtr, isServer)
hostPtr->name = Calloc(1, len);
memcpy(hostPtr->name, bp, len);
}
- bp += (((u_int32_t)bp) % sizeof(align));
+ bp += (((u_long)bp) % sizeof(align));
if (bp + dlen >= &hostbuf[sizeof(hostbuf)]) {
if (_res.options & RES_DEBUG) {