summaryrefslogtreecommitdiff
path: root/package/mrouted/mrouted-3.9.4-bcopy.patch
blob: ea8f6dbf63130dbac69a3ccc88675f5e59161350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Nura mrouted-3.9.4/mtrace.c mrouted-3.9.4-memmove/mtrace.c
--- mrouted-3.9.4/mtrace.c	2010-11-19 20:53:19.000000000 -0300
+++ mrouted-3.9.4-memmove/mtrace.c	2012-05-03 08:27:33.895422455 -0300
@@ -556,7 +556,7 @@
 		save->rtime = ((tr.tv_sec + JAN_1970) << 16) +
 		    (tr.tv_usec << 10) / 15625;
 		save->len = len;
-		bcopy((char *)igmp, (char *)&save->igmp, ipdatalen);
+		memmove((char *)&save->igmp, (char *)igmp, ipdatalen);
 	    }
 	    return recvlen;
 	}
@@ -646,7 +646,7 @@
 	base.rtime = ((tr.tv_sec + JAN_1970) << 16) +
 	    (tr.tv_usec << 10) / 15625;
 	base.len = len;
-	bcopy((char *)igmp, (char *)&base.igmp, ipdatalen);
+	memmove((char *)&base.igmp, (char *)igmp, ipdatalen);
 	/*
 	 * If the user specified which traces to monitor,
 	 * only accept traces that correspond to the