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;