diff options
author | Jim Meyering <jim@meyering.net> | 1995-01-28 13:22:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-01-28 13:22:25 +0000 |
commit | 7fc638a948243e72d9628759dddd9ee784645b88 (patch) | |
tree | a32e7e5ce6171b190ff229dcf27126235b11dcff /src/tail.c | |
parent | 3cd9e1dd23829e26a65f89f22e7001bf994bd1b9 (diff) | |
download | coreutils-7fc638a948243e72d9628759dddd9ee784645b88.tar.xz |
(pipe_lines, pipe_bytes): Use memcpy instead of bcopy.
Diffstat (limited to 'src/tail.c')
-rw-r--r-- | src/tail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tail.c b/src/tail.c index 3bbc8de3e..9a3430455 100644 --- a/src/tail.c +++ b/src/tail.c @@ -663,7 +663,7 @@ pipe_lines (filename, fd, n_lines) often be very small. */ if (tmp->nbytes + last->nbytes < BUFSIZ) { - bcopy (tmp->buffer, &last->buffer[last->nbytes], tmp->nbytes); + memcpy (&last->buffer[last->nbytes], tmp->buffer, tmp->nbytes); last->nbytes += tmp->nbytes; last->nlines += tmp->nlines; } @@ -779,7 +779,7 @@ pipe_bytes (filename, fd, n_bytes) often be very small. */ if (tmp->nbytes + last->nbytes < BUFSIZ) { - bcopy (tmp->buffer, &last->buffer[last->nbytes], tmp->nbytes); + memcpy (&last->buffer[last->nbytes], tmp->buffer, tmp->nbytes); last->nbytes += tmp->nbytes; } else |