diff options
author | Yann Collet <cyan@fb.com> | 2018-02-01 00:13:02 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2018-02-01 00:13:02 (GMT) |
commit | ff3c67fdb2de43cc5c27b48cf15d73e4686c74da (patch) | |
tree | f13cf6c0bd2acb55e3d08c9118c087f4eb935a86 | |
parent | 1acca240a9ce824612619dde36de44723785ebe3 (diff) | |
download | lz4-ff3c67fdb2de43cc5c27b48cf15d73e4686c74da.zip lz4-ff3c67fdb2de43cc5c27b48cf15d73e4686c74da.tar.gz lz4-ff3c67fdb2de43cc5c27b48cf15d73e4686c74da.tar.bz2 |
fixed read size, as noticed by @terrelln
-rw-r--r-- | examples/frameCompress.c | 2 |
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; |