1
0
mirror of https://github.com/3cky/mbusd synced 2025-10-19 23:54:47 +08:00
This commit is contained in:
Victor Antonovich 2015-12-17 13:12:32 +04:00
parent b78bdce2e4
commit 85943e89f5

View File

@ -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;