--- liblzf/lzf_c.c 2010/06/01 07:37:17 1.43 +++ liblzf/lzf_c.c 2010/06/01 09:11:33 1.44 @@ -150,7 +150,6 @@ && ref < ip /* the next test will actually take care of this, but this is faster */ #endif && (off = ip - ref - 1) < MAX_OFF - && ip + 4 < in_end && ref > (u8 *)in_data && ref[2] == ip[2] #if STRICT_ALIGN @@ -218,6 +217,7 @@ } *op++ = off; + lit = 0; op++; /* start run */ ip += len + 1;