summaryrefslogtreecommitdiffstats
path: root/usr.bin/compress
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-12-31 04:40:52 +0000
committerjkh <jkh@FreeBSD.org>1994-12-31 04:40:52 +0000
commit8d6f326374d8fff82337fa1e577367fd7990e0d0 (patch)
tree755d24f57a49e9404f21d0e67be193ff33af3fd4 /usr.bin/compress
parent2517028602ac0a7f098a9c69f3f9889df8aeda81 (diff)
downloadFreeBSD-src-8d6f326374d8fff82337fa1e577367fd7990e0d0.zip
FreeBSD-src-8d6f326374d8fff82337fa1e577367fd7990e0d0.tar.gz
Add David River's patch fix to use the passed in number of bits (-b <n>)
properly. Submitted by: rivers
Diffstat (limited to 'usr.bin/compress')
-rw-r--r--usr.bin/compress/zopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/compress/zopen.c b/usr.bin/compress/zopen.c
index b76fca6..9790f24 100644
--- a/usr.bin/compress/zopen.c
+++ b/usr.bin/compress/zopen.c
@@ -258,7 +258,7 @@ zwrite(cookie, wbp, num)
if (fwrite(magic_header,
sizeof(char), sizeof(magic_header), fp) != sizeof(magic_header))
return (-1);
- tmp = (u_char)(BITS | block_compress);
+ tmp = (u_char)((maxbits) | block_compress);
if (fwrite(&tmp, sizeof(char), sizeof(tmp), fp) != sizeof(tmp))
return (-1);
OpenPOWER on IntegriCloud