mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-07-29 03:50:45 +02:00
(fold_file): Use memmove instead of bcopy.
This commit is contained in:
+1
-1
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user