The kernel bcopy() is safe for overlapping regions (and always has), so

there is no use for a separate ovbcopy().
This commit is contained in:
Dag-Erling Smørgrav 2003-04-04 12:10:04 +00:00
parent e8c7f48855
commit 8543efae60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113071

View File

@ -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,