diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-01-08 18:09:12 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-01-08 18:09:12 -0500 |
commit | 5619448fc55650cb76cbb825e16e4bb5d1390399 (patch) | |
tree | aaaf671dc71abc98ca8fd609155f96028d80ae78 /lib | |
parent | a26ee60f90daffe1de6be0d093af86e7279b3dfd (diff) |
bzip2/lzma: fix constant in decompress_inflate
Impact: Cleanup
Fix constant 0x8100 /* 32K */; according to Alain the value 0x8100 was
left over test code to test misalignment, the correct value is indeed
0x8000 == 32K.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decompress_inflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c index 163e66aea5f6..d2e7c758d1ca 100644 --- a/lib/decompress_inflate.c +++ b/lib/decompress_inflate.c | |||
@@ -41,7 +41,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len, | |||
41 | set_error_fn(error_fn); | 41 | set_error_fn(error_fn); |
42 | rc = -1; | 42 | rc = -1; |
43 | if (flush) { | 43 | if (flush) { |
44 | out_len = 0x8100; /* 32 K */ | 44 | out_len = 0x8000; /* 32 K */ |
45 | out_buf = malloc(out_len); | 45 | out_buf = malloc(out_len); |
46 | } else { | 46 | } else { |
47 | out_len = 0x7fffffff; /* no limit */ | 47 | out_len = 0x7fffffff; /* no limit */ |