projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e98884b
)
unzip: another small code shrink
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 24 May 2010 11:07:55 +0000
(13:07 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 24 May 2010 11:07:55 +0000
(13:07 +0200)
function old new delta
find_cdf_offset 173 160 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/unzip.c
patch
|
blob
|
history
diff --git
a/archival/unzip.c
b/archival/unzip.c
index 5e8bac356be9b26d4d3b53fa7b3c5609dab30c22..1d3291ab8e3a025380ad57613ad7ec830dc84292 100644
(file)
--- a/
archival/unzip.c
+++ b/
archival/unzip.c
@@
-159,9
+159,9
@@
static uint32_t find_cdf_offset(void)
off_t end;
end = xlseek(zip_fd, 0, SEEK_END);
- if (end < 1024)
- end = 1024;
end -= 1024;
+ if (end < 0)
+ end = 0;
xlseek(zip_fd, end, SEEK_SET);
full_read(zip_fd, buf, 1024);