]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(pipe_lines, pipe_bytes): Use memcpy instead of bcopy.
authorJim Meyering <jim@meyering.net>
Sat, 28 Jan 1995 13:22:25 +0000 (13:22 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 28 Jan 1995 13:22:25 +0000 (13:22 +0000)
src/tail.c

index 3bbc8de3e26ae7fa6233c7c60af8bc8e224810cd..9a3430455bc8a676127912282294cf7b0e01e51d 100644 (file)
@@ -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