mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue