svn commit: r334628 - head/usr.bin/indent
Piotr Pawel Stefaniak
pstef at FreeBSD.org
Mon Jun 4 19:47:26 UTC 2018
Author: pstef
Date: Mon Jun 4 19:47:24 2018
New Revision: 334628
URL: https://svnweb.freebsd.org/changeset/base/334628
Log:
indent(1): replace BSD bcopy() with C memmove()
Modified:
head/usr.bin/indent/indent.c
Modified: head/usr.bin/indent/indent.c
==============================================================================
--- head/usr.bin/indent/indent.c Mon Jun 4 19:36:47 2018 (r334627)
+++ head/usr.bin/indent/indent.c Mon Jun 4 19:47:24 2018 (r334628)
@@ -1136,7 +1136,7 @@ check_type:
}
if (sc_end - save_com + com_end - com_start > sc_size)
errx(1, "input too long");
- bcopy(s_lab + com_start, sc_end, com_end - com_start);
+ memmove(sc_end, s_lab + com_start, com_end - com_start);
sc_end += com_end - com_start;
e_lab = s_lab + com_start;
while (e_lab > s_lab && (e_lab[-1] == ' ' || e_lab[-1] == '\t'))
More information about the svn-src-all
mailing list