1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix printing of Telnet GA as ugrave

[originally from svn r313]
This commit is contained in:
Simon Tatham 1999-11-16 09:57:40 +00:00
parent 1d837144c4
commit 3a3aaaf86d

View File

@ -411,9 +411,11 @@ static void do_telnet_read (char *buf, int len) {
else if (c == WONT) telnet_state = SEENWONT;
else if (c == SB) telnet_state = SEENSB;
else {
/* ignore (and print) everything else */
b[0] = c;
c_write(b,1);
/* ignore everything else; print it if it's IAC */
if (c == IAC) {
b[0] = c;
c_write(b,1);
}
telnet_state = TOPLEVEL;
}
break;