summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-02-01 00:13:02 (GMT)
committerYann Collet <cyan@fb.com>2018-02-01 00:13:02 (GMT)
commitff3c67fdb2de43cc5c27b48cf15d73e4686c74da (patch)
treef13cf6c0bd2acb55e3d08c9118c087f4eb935a86 /examples
parent1acca240a9ce824612619dde36de44723785ebe3 (diff)
downloadlz4-ff3c67fdb2de43cc5c27b48cf15d73e4686c74da.zip
lz4-ff3c67fdb2de43cc5c27b48cf15d73e4686c74da.tar.gz
lz4-ff3c67fdb2de43cc5c27b48cf15d73e4686c74da.tar.bz2
fixed read size, as noticed by @terrelln
Diffstat (limited to 'examples')
-rw-r--r--examples/frameCompress.c2
1 files changed, 1 insertions, 1 deletions
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;