From 85943e89f5e63e08bc0c17a3b527dc2ebeed235d Mon Sep 17 00:00:00 2001 From: Victor Antonovich Date: Thu, 17 Dec 2015 13:12:32 +0400 Subject: [PATCH] Fix #3 --- src/conn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/conn.c b/src/conn.c index 2af8c72..06c32a7 100644 --- a/src/conn.c +++ b/src/conn.c @@ -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;