--- snort-2.8.5.2.orig/src/parser/IpAddrSet.c 2009-07-07 17:37:07.000000000 +0200 +++ snort-2.8.5.2/src/parser/IpAddrSet.c 2010-01-19 20:20:50.000000000 +0100 @@ -388,11 +388,11 @@ int ParseIP(char *paddr, IpAddrSet *ias, /* protecting against malicious DNS servers */ if(host_info->h_length <= (int)sizeof(sin.sin_addr)) { - bcopy(host_info->h_addr, (char *) &sin.sin_addr, host_info->h_length); + memcpy((char *) &sin.sin_addr, host_info->h_addr, host_info->h_length); } else { - bcopy(host_info->h_addr, (char *) &sin.sin_addr, sizeof(sin.sin_addr)); + memcpy((char *) &sin.sin_addr, host_info->h_addr, sizeof(sin.sin_addr)); } } /* Using h_errno */