diff --git a/CHANGELOG b/CHANGELOG index c63069851..645b065da 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ # Nmap Changelog ($Id$); -*-text-*- +o Fixed a compile error on NetBSD. It was + tcpip.cc:2948: error: pointer of type 'void *' used in arithmetic + Thanks to Jay Fink for reporting the problem and submitting a patch. + o [Zenmap] If you have any hosts or services selected, they will remain selected after aggregating another scan or running a filter (as long as they are still up and visible). Before the selection was diff --git a/tcpip.cc b/tcpip.cc index be4ac1dee..17af30b4d 100644 --- a/tcpip.cc +++ b/tcpip.cc @@ -3037,7 +3037,7 @@ static struct interface_info *getinterfaces_siocgifconf(int *howmany) { ifr = ifc.ifc_req; for (ifr = ifc.ifc_req; - ifr && ifr->ifr_name[0] && (void *) ifr < ifc.ifc_buf + ifc.ifc_len; + ifr && ifr->ifr_name[0] && (void *) ifr < (char *) ifc.ifc_buf + ifc.ifc_len; ifr = (struct ifreq *) ((char *) ifr + len)) { struct sockaddr_in *sin; struct ifreq tmpifr;