1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 13:32:48 -05:00

from_backend() should always be called with len > 0. Only rlogin

mode ever failed to do this, and only Plink actually had a problem
with it, so this didn't become obvious for a while. rlogin mode is
fixed, and all implementations of from_backend() now contain an
assertion so that we should spot errors of this type more quickly in
future.

[originally from svn r1571]
This commit is contained in:
Simon Tatham
2002-03-01 13:17:45 +00:00
parent 0b61ac21c2
commit fdbd697801
5 changed files with 11 additions and 1 deletions

View File

@ -3603,6 +3603,8 @@ int term_ldisc(int option)
*/
int from_backend(int is_stderr, char *data, int len)
{
assert(len > 0);
bufchain_add(&inbuf, data, len);
/*