libxlsxwriter/third_party/minizip/zip.c in fast_excel-0.2.6 vs libxlsxwriter/third_party/minizip/zip.c in fast_excel-0.3.0
- old
+ new
@@ -517,15 +517,17 @@
if (ZREAD64(*pzlib_filefunc_def,filestream,buf,uReadSize)!=uReadSize)
break;
for (i=(int)uReadSize-3; (i--)>0;)
+ {
if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) &&
((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06))
{
uPosFound = uReadPos+i;
break;
}
+ }
if (uPosFound!=0)
break;
}
TRYFREE(buf);