fix : segfault in command line during automatic overwrite protection mode

This commit is contained in:
Yann Collet
2016-06-21 17:06:25 +02:00
parent bda68c253b
commit 391a128794
3 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -302,7 +302,7 @@ size_t ZBUFF_compressEnd(ZBUFF_CCtx* zbc, void* dst, size_t* dstCapacityPtr)
op += outSize;
if (remainingToFlush) {
*dstCapacityPtr = op-ostart;
return remainingToFlush + ZSTD_BLOCKHEADERSIZE;
return remainingToFlush + ZBUFF_endFrameSize;
}
/* create epilogue */
zbc->stage = ZBUFFcs_final;