commit 62cef5aaa820f7de3a20d9c7f641f2326047ad4e
parent 162823bea29ac79fd3fb107de28c4032fc9db7f5
Author: nsz@tpx <unknown>
Date: Sun, 9 Aug 2009 10:34:51 +0200
winsize = 2*maxdist + maxmatch
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/deflate.c b/deflate.c
@@ -624,7 +624,7 @@ static int deflate_state(State *s) {
putbits(s, 0, 7);
return FlateOut;
}
- if (s->pos - s->startpos >= MaxDist || s->rend - s->rbuf >= RbufSize - 2) {
+ if (s->pos - s->startpos >= MaxDist || s->rend - s->rbuf > RbufSize - 3) {
fprintf(stderr, "start %d pos %d avail %d srcavail %d rlen %d\n", s->startpos, s->pos, s->avail, s->srcend - s->src, s->rend - s->rbuf);
flushlit(s);
if (s->prevm.len)