ttynvt: Partial read fix

Somehow forgotten initially.
This commit is contained in:
Kim Woelders
2023-02-13 09:30:29 +01:00
parent 5fb11097e1
commit 94bd59e1e0
+1 -1
View File
@@ -144,7 +144,7 @@ int telnet_rx(tn_ctx_t * tcc, char *buf, int *plen)
/* We have IAC (= 0xff) */ /* We have IAC (= 0xff) */
np = rem - (p - s); /* N. chars available incl. IAC */ np = rem - (p - s); /* N. chars available incl. IAC */
if (np < 2) if (np < 2)
return 1; goto tn_more;
pu = (unsigned char *)p; pu = (unsigned char *)p;
b1 = pu[1]; b1 = pu[1];