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:
parent
2e3076b520
commit
cd08df1e5e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user