mirror of
https://github.com/sheumann/hush.git
synced 2025-01-04 22:34:37 +00:00
unzip: another small code shrink
function old new delta find_cdf_offset 173 160 -13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e98884b9be
commit
fc2bb8f04f
@ -159,9 +159,9 @@ static uint32_t find_cdf_offset(void)
|
|||||||
off_t end;
|
off_t end;
|
||||||
|
|
||||||
end = xlseek(zip_fd, 0, SEEK_END);
|
end = xlseek(zip_fd, 0, SEEK_END);
|
||||||
if (end < 1024)
|
|
||||||
end = 1024;
|
|
||||||
end -= 1024;
|
end -= 1024;
|
||||||
|
if (end < 0)
|
||||||
|
end = 0;
|
||||||
xlseek(zip_fd, end, SEEK_SET);
|
xlseek(zip_fd, end, SEEK_SET);
|
||||||
full_read(zip_fd, buf, 1024);
|
full_read(zip_fd, buf, 1024);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user