projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove all the "assert(len>0)" which forbade zero-length writes across the
[u/mdw/putty]
/
terminal.c
diff --git
a/terminal.c
b/terminal.c
index
5efe484
..
1fa66e1
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-4792,8
+4792,6
@@
int term_ldisc(Terminal *term, int option)
int term_data(Terminal *term, int is_stderr, const char *data, int len)
{
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) {
bufchain_add(&term->inbuf, data, len);
if (!term->in_term_out) {