aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorMike Moreton <mike.moreton@frontier-silicon.com>2016-09-23 08:46:11 +0100
committerRob Landley <rob@landley.net>2017-05-07 23:08:14 -0500
commit31b18720cc8aea4e531bcff4fc5a719b42a5d24b (patch)
tree55738f4ac97b6dd4cdcf6f3dd78bfcf0386574ea /toys/pending
parent75eea7d5aa6a7eb69fd842e376932fbf45423228 (diff)
downloadtoybox-31b18720cc8aea4e531bcff4fc5a719b42a5d24b.tar.gz
Fix error in writing output that was causing zcat to always fail.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/compress.c b/toys/pending/compress.c
index 5605a354..bc69a035 100644
--- a/toys/pending/compress.c
+++ b/toys/pending/compress.c
@@ -170,7 +170,7 @@ static void output_byte(char sym)
TT.data[pos] = sym;
- if (!pos) {
+ if (pos == 32767) {
xwrite(TT.outfd, TT.data, 32768);
if (TT.crcfunc) TT.crcfunc(TT.data, 32768);
}