mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix last commit, ttydisc_rint_bypass returns the total, not remainder.
This commit is contained in:
parent
099d0bd34b
commit
b461c84caf
1 changed files with 1 additions and 1 deletions
|
|
@ -708,7 +708,7 @@ ucomrxchars(struct ucom_softc *sc, u_char *cp, u_int32_t cc)
|
|||
/* Give characters to tty layer. */
|
||||
if (ttydisc_can_bypass(tp)) {
|
||||
DPRINTFN(7, ("ucomreadcb: buf = %*D\n", cc, cp, ""));
|
||||
cc = ttydisc_rint_bypass(tp, cp, cc);
|
||||
cc -= ttydisc_rint_bypass(tp, cp, cc);
|
||||
} else {
|
||||
while (cc > 0) {
|
||||
DPRINTFN(7, ("ucomreadcb: char = 0x%02x\n", *cp));
|
||||
|
|
|
|||
Loading…
Reference in a new issue