summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-01-28 13:00:10 +0000
committerJim Meyering <jim@meyering.net>1995-01-28 13:00:10 +0000
commit392dd54529039ecca43698a1a67f054c1aa4bf82 (patch)
tree0630745e33fbbdc7329f874043f83c1e8400dacd /src/fold.c
parent3794d3b8ade648b1caed3aedce4142ee49368541 (diff)
downloadcoreutils-392dd54529039ecca43698a1a67f054c1aa4bf82.tar.xz
(fold_file): Use memmove instead of bcopy.
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fold.c b/src/fold.c
index d6c07d615..99174b12e 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++)