summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2011-09-15 20:20:39 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2011-09-15 20:20:39 (GMT)
commite154e125fc6f5b8ef55fca30f023e3bc329a524a (patch)
tree4f195045bd119f9e1f1ef2c243bb62a9f4933a9f
parentd5a574c3511c036edd6bc09f8c87b30710728b93 (diff)
downloadlz4-e154e125fc6f5b8ef55fca30f023e3bc329a524a.zip
lz4-e154e125fc6f5b8ef55fca30f023e3bc329a524a.tar.gz
lz4-e154e125fc6f5b8ef55fca30f023e3bc329a524a.tar.bz2
CLI : corrected : small allocation error in case of not compressible input
git-svn-id: https://lz4.googlecode.com/svn/trunk@21 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 2b36c4f..f41330c 100644
--- a/main.c
+++ b/main.c
@@ -72,7 +72,7 @@
#define CHUNKSIZE (8<<20) // 8 MB
#define CACHELINE 64
-#define OUT_CHUNKSIZE (CHUNKSIZE + (CHUNKSIZE>>8) + CACHELINE)
+#define OUT_CHUNKSIZE (CHUNKSIZE + (CHUNKSIZE/255) + CACHELINE)
#define ARCHIVE_MAGICNUMBER 0x184C2102
#define ARCHIVE_MAGICNUMBER_SIZE 4