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:
1976546
)
(cat): Use memmove rather than bcopy.
author
Jim Meyering
<jim@meyering.net>
Sat, 28 Jan 1995 04:45:19 +0000
(
04:45
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 28 Jan 1995 04:45:19 +0000
(
04:45
+0000)
src/cat.c
patch
|
blob
|
history
diff --git
a/src/cat.c
b/src/cat.c
index
8ef9d71
..
2d1df91
100644
(file)
--- a/
src/cat.c
+++ b/
src/cat.c
@@
-524,7
+524,7
@@
cat (inbuf, insize, outbuf, outsize, quote,
/* Move the remaining bytes to the beginning of the
buffer. */
-
bcopy (wp, outbuf
, bpout - wp);
+
memmove (outbuf, wp
, bpout - wp);
bpout = outbuf + (bpout - wp);
}