diff options
author | Jim Meyering <jim@meyering.net> | 1995-01-28 13:04:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-01-28 13:04:27 +0000 |
commit | 849868e342cc7b8477ba3a3dbf6f1732f4d08c52 (patch) | |
tree | 94ec30a75248f6e48f38e9726bb2fe561c137b06 | |
parent | 197bc3fd5a37062d0b980ef54d673b9c9bb39e4c (diff) | |
download | coreutils-849868e342cc7b8477ba3a3dbf6f1732f4d08c52.tar.xz |
(checkfp, mergefps): Use memcpy instead of bcopy.
(fillbuf): Use memmove instead of bcopy.
-rw-r--r-- | src/sort.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |