diff options
author | des <des@FreeBSD.org> | 2003-04-04 12:10:04 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-04-04 12:10:04 +0000 |
commit | 735100a9f0f603e21b7780da79b40cae0273ccfe (patch) | |
tree | 392c26d8c23ae197134296d8098c7c777f11cea0 | |
parent | 9dc45d46b97314eae75db8cc6f6f96eb4d748ffa (diff) | |
download | FreeBSD-src-735100a9f0f603e21b7780da79b40cae0273ccfe.zip FreeBSD-src-735100a9f0f603e21b7780da79b40cae0273ccfe.tar.gz |
The kernel bcopy() is safe for overlapping regions (and always has), so
there is no use for a separate ovbcopy().
-rw-r--r-- | sys/ddb/db_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index d9578d8..97f5980 100644 --- a/sys/ddb/db_input.c +++ b/sys/ddb/db_input.c @@ -329,8 +329,8 @@ db_readline(lstart, lsize) /* Maintain input line history for non-empty lines. */ if (++db_lhistidx == db_lhist_nlines) { /* Rotate history. */ - ovbcopy(db_lhistory + db_lhistlsize, db_lhistory, - db_lhistlsize * (db_lhist_nlines - 1)); + bcopy(db_lhistory + db_lhistlsize, db_lhistory, + db_lhistlsize * (db_lhist_nlines - 1)); db_lhistidx--; } bcopy(lstart, db_lhistory + db_lhistidx * db_lhistlsize, |