ttynvt: Partial read fix
Somehow forgotten initially.
This commit is contained in:
+1
-1
@@ -144,7 +144,7 @@ int telnet_rx(tn_ctx_t * tcc, char *buf, int *plen)
|
||||
/* We have IAC (= 0xff) */
|
||||
np = rem - (p - s); /* N. chars available incl. IAC */
|
||||
if (np < 2)
|
||||
return 1;
|
||||
goto tn_more;
|
||||
|
||||
pu = (unsigned char *)p;
|
||||
b1 = pu[1];
|
||||
|
||||
Reference in New Issue
Block a user