Revision: 9757 http://sourceforge.net/p/skim-app/code/9757 Author: hofman Date: 2018-04-11 13:58:03 +0000 (Wed, 11 Apr 2018) Log Message: ----------- Finishing bz compress may not end immediately, there can be BZ_FINISH_OK returned
Modified Paths: -------------- trunk/SkimNotes/SKNExtendedAttributeManager.m Modified: trunk/SkimNotes/SKNExtendedAttributeManager.m =================================================================== --- trunk/SkimNotes/SKNExtendedAttributeManager.m 2018-04-10 19:51:40 UTC (rev 9756) +++ trunk/SkimNotes/SKNExtendedAttributeManager.m 2018-04-11 13:58:03 UTC (rev 9757) @@ -585,7 +585,7 @@ const NSInteger maxHangCount = 100; do { bzret = BZ2_bzCompress(&stream, (stream.avail_in) ? BZ_RUN : BZ_FINISH); - if ((bzret != BZ_RUN_OK && bzret != BZ_STREAM_END) || + if ((bzret != BZ_RUN_OK && bzret != BZ_FINISH_OK && bzret != BZ_STREAM_END) || (buffer_size == stream.avail_out && ++hangCount > maxHangCount)) { hadError = YES; compressed = nil; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit