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
@ -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…
x
Reference in New Issue
Block a user