indent(1): replace BSD bcopy() with C memmove()

This commit is contained in:
Piotr Pawel Stefaniak 2018-06-04 19:47:24 +00:00
parent 97bc9a9384
commit 03e6aeef3a

View File

@ -1136,7 +1136,7 @@ main(int argc, char **argv)
}
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'))