mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Remove all the "assert(len>0)" which forbade zero-length writes across the
from_backend() interface, after having made all implementations safe against
being called with len==0 and possibly-NULL/undefined "data".
(This includes making misc.c:bufchain_add() more robust in this area.)
Assertion was originally added 2002-03-01; e.g., see plink.c:1.53 [r1571].
I believe this now shouldn't break anything.
This should hopefully make `ppk-empty-comment' finally GO AWAY. (Tested
with Unix PuTTY.)
[originally from svn r3500]
[r1571 == fdbd697801
]
This commit is contained in:
@ -4792,8 +4792,6 @@ int term_ldisc(Terminal *term, int option)
|
||||
|
||||
int term_data(Terminal *term, int is_stderr, const char *data, int len)
|
||||
{
|
||||
assert(len > 0);
|
||||
|
||||
bufchain_add(&term->inbuf, data, len);
|
||||
|
||||
if (!term->in_term_out) {
|
||||
|
Reference in New Issue
Block a user