From ff3c67fdb2de43cc5c27b48cf15d73e4686c74da Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 31 Jan 2018 16:13:02 -0800 Subject: fixed read size, as noticed by @terrelln --- examples/frameCompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/frameCompress.c b/examples/frameCompress.c index 35dbde2..5d78ef0 100644 --- a/examples/frameCompress.c +++ b/examples/frameCompress.c @@ -84,7 +84,7 @@ compress_file(FILE* in, FILE* out, /* stream file */ for (;;) { - size_t const readSize = fread(src, 1, outbufCapacity, in); + size_t const readSize = fread(src, 1, IN_CHUNK_SIZE, in); if (readSize == 0) break; count_in += readSize; -- cgit v0.12