From 3a3aaaf86d2ce8adb66c6eba9c40a32869db012a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 16 Nov 1999 09:57:40 +0000 Subject: [PATCH] Fix printing of Telnet GA as ugrave [originally from svn r313] --- telnet.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/telnet.c b/telnet.c index 399c1260..94bef162 100644 --- a/telnet.c +++ b/telnet.c @@ -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;