diff options
author | Mike Moreton <mike.moreton@frontier-silicon.com> | 2016-09-23 08:46:11 +0100 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-05-07 23:08:14 -0500 |
commit | 31b18720cc8aea4e531bcff4fc5a719b42a5d24b (patch) | |
tree | 55738f4ac97b6dd4cdcf6f3dd78bfcf0386574ea /toys/pending | |
parent | 75eea7d5aa6a7eb69fd842e376932fbf45423228 (diff) | |
download | toybox-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.c | 2 |
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); } |