Remove all the "assert(len>0)" which forbade zero-length writes across the
[u/mdw/putty] / terminal.c
index 7b56e61..1fa66e1 100644 (file)
@@ -1697,7 +1697,7 @@ void term_out(Terminal *term)
                            term_update(term);
                        }
                    }
-                   term->disptop = 0;
+                   term->seen_disp_event = TRUE;
                }
                break;
              case '\b':              /* BS: Back space */
@@ -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) {