From 31b18720cc8aea4e531bcff4fc5a719b42a5d24b Mon Sep 17 00:00:00 2001 From: Mike Moreton Date: Fri, 23 Sep 2016 08:46:11 +0100 Subject: Fix error in writing output that was causing zcat to always fail. --- toys/pending/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3