projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3794d3b
)
(fold_file): Use memmove instead of bcopy.
author
Jim Meyering
<jim@meyering.net>
Sat, 28 Jan 1995 13:00:10 +0000
(13:00 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 28 Jan 1995 13:00:10 +0000
(13:00 +0000)
src/fold.c
patch
|
blob
|
history
diff --git
a/src/fold.c
b/src/fold.c
index
d6c07d6
..
99174b1
100644
(file)
--- 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++)