mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
e8c7f48855
commit
8543efae60
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue