From cc23f40fb101409dd94753d45f6b8eebc2c6103d Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 16 Oct 2004 12:36:50 +0000 Subject: [PATCH] Fix bug in scrollback compression, which manifested when attempting to encode a very long (len>128) run of the same literal. git-svn-id: svn://svn.tartarus.org/sgt/putty@4647 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminal.c b/terminal.c index 40ad4823..1a65e71b 100644 --- a/terminal.c +++ b/terminal.c @@ -435,6 +435,9 @@ static void makerle(struct buf *b, termline *ldata, hdrpos = b->len; hdrsize = 0; add(b, 0); + /* And ensure this run doesn't interfere with the next. */ + prevlen = prevpos = 0; + prev2 = FALSE; continue; } else { -- 2.11.0