From 7fc638a948243e72d9628759dddd9ee784645b88 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 28 Jan 1995 13:22:25 +0000 Subject: [PATCH] (pipe_lines, pipe_bytes): Use memcpy instead of bcopy. --- src/tail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3