]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(checkfp, mergefps): Use memcpy instead of bcopy.
authorJim Meyering <jim@meyering.net>
Sat, 28 Jan 1995 13:04:27 +0000 (13:04 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 28 Jan 1995 13:04:27 +0000 (13:04 +0000)
(fillbuf): Use memmove instead of bcopy.

src/sort.c

index a94111349d4ab3394f1711d2a0c4f63cfab1b93b..5206c10d81ccee49a350c18195d934928af9ab62 100644 (file)
@@ -392,7 +392,7 @@ fillbuf (buf, fp)
 {
   int cc;
 
-  bcopy (buf->buf + buf->used - buf->left, buf->buf, buf->left);
+  memmove (buf->buf, buf->buf + buf->used - buf->left, buf->left);
   buf->used = buf->left;
 
   while (!feof (fp) && (buf->used == 0 || !memchr (buf->buf, '\n', buf->used)))
@@ -989,7 +989,7 @@ checkfp (fp)
              alloc *= 2;
            temp.text = xrealloc (temp.text, alloc);
          }
-       bcopy (prev_line->text, temp.text, prev_line->length + 1);
+       memcpy (temp.text, prev_line->text, prev_line->length + 1);
        temp.length = prev_line->length;
        temp.keybeg = temp.text + (prev_line->keybeg - prev_line->text);
        temp.keylim = temp.text + (prev_line->keylim - prev_line->text);
@@ -1081,7 +1081,7 @@ mergefps (fps, nfps, ofp)
   /* Repeatedly output the smallest line until no input remains. */
   while (nfps)
     {
-      /* If uniqified output is turned out, output only the first of
+      /* If uniqified output is turned on, output only the first of
         an identical series of lines. */
       if (unique)
        {
@@ -1100,7 +1100,7 @@ mergefps (fps, nfps, ofp)
                  saved.text = xrealloc (saved.text, savealloc);
                }
              saved.length = lines[ord[0]].lines[cur[ord[0]]].length;
-             bcopy (lines[ord[0]].lines[cur[ord[0]]].text, saved.text,
+             memcpy (saved.text, lines[ord[0]].lines[cur[ord[0]]].text,
                     saved.length + 1);
              if (lines[ord[0]].lines[cur[ord[0]]].keybeg != NULL)
                {