From 096af13560b8fac965f89fcdf8bea3a19b05bbc3 Mon Sep 17 00:00:00 2001 From: ross Date: Tue, 24 Nov 1998 06:06:10 +0000 Subject: [PATCH] Needs an LP64 fix plus a --- usr.sbin/bind/nslookup/getinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bind/nslookup/getinfo.c b/usr.sbin/bind/nslookup/getinfo.c index 61543a26c8d7..52901207f322 100644 --- a/usr.sbin/bind/nslookup/getinfo.c +++ b/usr.sbin/bind/nslookup/getinfo.c @@ -1,4 +1,4 @@ -/* $NetBSD: getinfo.c,v 1.1.1.1 1998/10/05 18:01:59 tron Exp $ */ +/* $NetBSD: getinfo.c,v 1.2 1998/11/24 06:06:10 ross Exp $ */ /* * Copyright (c) 1985, 1989 @@ -84,6 +84,7 @@ static char rcsid[] = "Id: getinfo.c,v 8.11 1998/03/19 19:30:55 halley Exp"; #include #include #include +#include #include "port_after.h" @@ -321,7 +322,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 += (((size_t)bp) % sizeof(align)); if (bp + dlen >= &hostbuf[sizeof(hostbuf)]) { if (_res.options & RES_DEBUG) {