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:
parent
3c8ea7601e
commit
556751c1e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5302
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user