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:
des 2003-04-04 12:10:04 +00:00
parent 2e3076b520
commit cd08df1e5e

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,