1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

Fix bug in scrollback compression, which manifested when attempting

to encode a very long (len>128) run of the same literal.

[originally from svn r4647]
This commit is contained in:
Simon Tatham 2004-10-16 12:36:50 +00:00
parent 859d92a577
commit d412fed542

View File

@ -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 {