From: Jim Meyering Date: Sat, 28 Jan 1995 13:00:10 +0000 (+0000) Subject: (fold_file): Use memmove instead of bcopy. X-Git-Tag: textutils-1_12_1~316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=392dd54529039ecca43698a1a67f054c1aa4bf82;p=thirdparty%2Fcoreutils.git (fold_file): Use memmove instead of bcopy. --- diff --git a/src/fold.c b/src/fold.c index d6c07d6151..99174b12ec 100644 --- a/src/fold.c +++ b/src/fold.c @@ -237,7 +237,7 @@ fold_file (filename, width) putchar ('\n'); /* Move the remainder to the beginning of the next line. The areas being copied here might overlap. */ - bcopy (line_out + logical_end, line_out, + memmove (line_out, line_out + logical_end, offset_out - logical_end); offset_out -= logical_end; for (column = i = 0; i < offset_out; i++)