From 849868e342cc7b8477ba3a3dbf6f1732f4d08c52 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 28 Jan 1995 13:04:27 +0000 Subject: (checkfp, mergefps): Use memcpy instead of bcopy. (fillbuf): Use memmove instead of bcopy. --- src/sort.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sort.c') diff --git a/src/sort.c b/src/sort.c index a94111349..5206c10d8 100644 --- a/src/sort.c +++ b/src/sort.c @@ -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) { -- cgit v1.2.3-70-g09d2