From: Jim Meyering Date: Sat, 28 Jan 1995 13:22:25 +0000 (+0000) Subject: (pipe_lines, pipe_bytes): Use memcpy instead of bcopy. X-Git-Tag: textutils-1_12_1~310 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fc638a948243e72d9628759dddd9ee784645b88;p=thirdparty%2Fcoreutils.git (pipe_lines, pipe_bytes): Use memcpy instead of bcopy. --- diff --git a/src/tail.c b/src/tail.c index 3bbc8de3e2..9a3430455b 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