ext/xlsxwriter/libxlsxwriter/third_party/minizip/zip.c in xlsxwriter-0.0.5 vs ext/xlsxwriter/libxlsxwriter/third_party/minizip/zip.c in xlsxwriter-0.0.6

- 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);