1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Add David River's patch fix to use the passed in number of bits (-b <n>)

properly.
Submitted by:	rivers
This commit is contained in:
Jordan K. Hubbard 1994-12-31 04:40:52 +00:00
parent 3c8ea7601e
commit 556751c1e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5302

View File

@ -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);