zlib 1.0.8

This commit is contained in:
Mark Adler
2011-09-09 23:18:57 -07:00
parent 7850e4e406
commit 6759211ad8
27 changed files with 482 additions and 144 deletions

View File

@@ -321,7 +321,8 @@ z_streamp z;
/* search */
while (n && m < 4)
{
if (*p == (Byte)(m < 2 ? 0 : 0xff))
static const Byte mark[4] = {0, 0, 0xff, 0xff};
if (*p == mark[m])
m++;
else if (*p)
m = 0;