1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-01 19:20:13 -05:00

Merge ldisc_send fix from 'pre-0.83'.

This commit is contained in:
Simon Tatham 2025-01-16 07:27:51 +00:00
commit 6ffb0e067f

View File

@ -272,8 +272,10 @@ void ldisc_send(Ldisc *ldisc, const void *vbuf, int len, bool interactive)
*/
len = strlen(vbuf);
type = DEDICATED;
} else {
} else if (len > 0) {
type = interactive ? NORMAL : NONINTERACTIVE;
} else {
return; /* nothing to do anyway */
}
/*