diff options
author | jkh <jkh@FreeBSD.org> | 1994-12-31 04:40:52 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-12-31 04:40:52 +0000 |
commit | 8d6f326374d8fff82337fa1e577367fd7990e0d0 (patch) | |
tree | 755d24f57a49e9404f21d0e67be193ff33af3fd4 /usr.bin/compress/zopen.c | |
parent | 2517028602ac0a7f098a9c69f3f9889df8aeda81 (diff) | |
download | FreeBSD-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/zopen.c')
-rw-r--r-- | usr.bin/compress/zopen.c | 2 |
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); |