From 0010656ee9ee024f4582605e0e9a29eff6b747b2 Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 18 Dec 2008 19:15:25 +0000 Subject: [PATCH] Fix last commit, ttydisc_rint_bypass returns the total, not remainder. --- sys/dev/usb/ucom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index 3c39570a7714..ae263a064539 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -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));