summaryrefslogtreecommitdiff
path: root/package/snort/patches/patch-src_parser_IpAddrSet_c
blob: edb62126d2633ad79e31f675a57986174390348e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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 */