Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2018 19:47:25 +0000 (UTC)
From:      Piotr Pawel Stefaniak <pstef@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334628 - head/usr.bin/indent
Message-ID:  <201806041947.w54JlP1b025857@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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'))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806041947.w54JlP1b025857>