Module Name:    src
Committed By:   thorpej
Date:           Fri Dec  4 00:41:10 UTC 2020

Modified Files:
        src/sys/dist/pf/net: pf_table.c

Log Message:
In pfr_fix_anchor(), change an overlapping bcopy() call to a memmove()
call.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dist/pf/net/pf_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dist/pf/net/pf_table.c
diff -u src/sys/dist/pf/net/pf_table.c:1.18 src/sys/dist/pf/net/pf_table.c:1.19
--- src/sys/dist/pf/net/pf_table.c:1.18	Wed Feb 14 16:07:55 2018
+++ src/sys/dist/pf/net/pf_table.c	Fri Dec  4 00:41:10 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: pf_table.c,v 1.18 2018/02/14 16:07:55 maya Exp $	*/
+/*	$NetBSD: pf_table.c,v 1.19 2020/12/04 00:41:10 thorpej Exp $	*/
 /*	$OpenBSD: pf_table.c,v 1.70 2007/05/23 11:53:45 markus Exp $	*/
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pf_table.c,v 1.18 2018/02/14 16:07:55 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pf_table.c,v 1.19 2020/12/04 00:41:10 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1786,7 +1786,7 @@ pfr_fix_anchor(char *anchor)
 		off = 1;
 		while (*++path == '/')
 			off++;
-		bcopy(path, anchor, siz - off);
+		memmove(anchor, path, siz - off);
 		memset(anchor + siz - off, 0, off);
 	}
 	if (anchor[siz - 1])

Reply via email to