Add in some changes from Dave Borman (borman@monet).
[unix-history] / usr / src / usr.bin / telnet / telnet.c
index e14596b..3a86850 100644 (file)
@@ -403,7 +403,7 @@ telrcv()
            if (c == '\0') {
                break;  /* Ignore \0 after CR */
            } else if (c == '\n') {
            if (c == '\0') {
                break;  /* Ignore \0 after CR */
            } else if (c == '\n') {
-               if (hisopts[TELOPT_ECHO] && !crmod) {
+               if ((!hisopts[TELOPT_ECHO]) && !crmod) {
                    TTYADD(c);
                }
                break;
                    TTYADD(c);
                }
                break;