]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Typo fix
authorBimba Shrestha <bimbashrestha@fb.com>
Fri, 27 Sep 2019 14:20:20 +0000 (07:20 -0700)
committerBimba Shrestha <bimbashrestha@fb.com>
Fri, 27 Sep 2019 14:20:20 +0000 (07:20 -0700)
tests/fuzzer.c

index 0b935c8255f5648a4efd123f412a6e6fa20fc68a..cf81230db5b8cf34507f07f6c66a3011332756ff 100644 (file)
@@ -2002,7 +2002,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
 
         /* "decode" and compare the sequences */
         FUZ_decodeSequences(decoded, seqs, seqsSize, src, srcSize);
-        assert(!memcmp(CNBuffer, compressedBuffer, 5));
+        assert(!memcmp(CNBuffer, compressedBuffer, srcSize));
 
         ZSTD_freeCCtx(cctx);
         free(seqs);