mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Jacob points out that TS_EOL is broken in BINARY mode.
[originally from svn r2915]
This commit is contained in:
parent
6f693ffeb0
commit
3e311e94fc
5
telnet.c
5
telnet.c
@ -928,9 +928,10 @@ static void telnet_special(void *handle, Telnet_Special code)
|
|||||||
telnet->bufsize = sk_write(telnet->s, (char *)b, 2);
|
telnet->bufsize = sk_write(telnet->s, (char *)b, 2);
|
||||||
break;
|
break;
|
||||||
case TS_EOL:
|
case TS_EOL:
|
||||||
/* In BINARY mode, CR-LF becomes just CR. */
|
/* In BINARY mode, CR-LF becomes just CR -
|
||||||
|
* and without the NUL suffix too. */
|
||||||
if (telnet->opt_states[o_we_bin.index] == ACTIVE)
|
if (telnet->opt_states[o_we_bin.index] == ACTIVE)
|
||||||
telnet->bufsize = sk_write(telnet->s, "\r", 2);
|
telnet->bufsize = sk_write(telnet->s, "\r", 1);
|
||||||
else
|
else
|
||||||
telnet->bufsize = sk_write(telnet->s, "\r\n", 2);
|
telnet->bufsize = sk_write(telnet->s, "\r\n", 2);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user