mirror of
https://github.com/3cky/mbusd.git
synced 2025-01-29 22:11:34 +01:00
Fix #3
This commit is contained in:
parent
b78bdce2e4
commit
85943e89f5
@ -624,6 +624,9 @@ conn_loop(void)
|
||||
case 4:
|
||||
i = 5 + tty.rxbuf[tty.rxoffset + 2];
|
||||
break;
|
||||
default:
|
||||
i = tty.rxlen;
|
||||
break;
|
||||
}
|
||||
if (i + tty.rxoffset > TTY_BUFSIZE)
|
||||
i = TTY_BUFSIZE - tty.rxoffset;
|
||||
|
Loading…
Reference in New Issue
Block a user