diff options
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 5c011e15d..671529d37 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -141,7 +141,7 @@ remove_iacs(struct tsession *ts, int *pnum_totty) | |||
141 | if (ptr[1] == SB && ptr[2] == TELOPT_NAWS) { | 141 | if (ptr[1] == SB && ptr[2] == TELOPT_NAWS) { |
142 | struct winsize ws; | 142 | struct winsize ws; |
143 | if ((ptr+8) >= end) | 143 | if ((ptr+8) >= end) |
144 | break; /* incomplete, can't process */ | 144 | break; /* incomplete, can't process */ |
145 | ws.ws_col = (ptr[3] << 8) | ptr[4]; | 145 | ws.ws_col = (ptr[3] << 8) | ptr[4]; |
146 | ws.ws_row = (ptr[5] << 8) | ptr[6]; | 146 | ws.ws_row = (ptr[5] << 8) | ptr[6]; |
147 | ioctl(ts->ptyfd, TIOCSWINSZ, (char *)&ws); | 147 | ioctl(ts->ptyfd, TIOCSWINSZ, (char *)&ws); |
@@ -273,8 +273,8 @@ make_new_session( | |||
273 | static const char iacs_to_send[] ALIGN1 = { | 273 | static const char iacs_to_send[] ALIGN1 = { |
274 | IAC, DO, TELOPT_ECHO, | 274 | IAC, DO, TELOPT_ECHO, |
275 | IAC, DO, TELOPT_NAWS, | 275 | IAC, DO, TELOPT_NAWS, |
276 | /* This requires telnetd.ctrlSQ.patch (incomplete) */ | 276 | /* This requires telnetd.ctrlSQ.patch (incomplete) */ |
277 | /* IAC, DO, TELOPT_LFLOW, */ | 277 | /*IAC, DO, TELOPT_LFLOW,*/ |
278 | IAC, WILL, TELOPT_ECHO, | 278 | IAC, WILL, TELOPT_ECHO, |
279 | IAC, WILL, TELOPT_SGA | 279 | IAC, WILL, TELOPT_SGA |
280 | }; | 280 | }; |