projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move get_unaligned_le32() macros to platform.h
[oweals/busybox.git]
/
archival
/
libarchive
/
open_transformer.c
diff --git
a/archival/libarchive/open_transformer.c
b/archival/libarchive/open_transformer.c
index a3018d9ec3e616daf3a0b388d5236b4d5a84a443..ac7e5db95f5aa7db9184b6400d50477141be8aa1 100644
(file)
--- a/
archival/libarchive/open_transformer.c
+++ b/
archival/libarchive/open_transformer.c
@@
-331,6
+331,9
@@
void* FAST_FUNC xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_
}
} else {
/* File is not compressed */
+//FIXME: avoid seek
+ xlseek(xstate->src_fd, - xstate->signature_skipped, SEEK_CUR);
+ xstate->signature_skipped = 0;
image = xmalloc_read(xstate->src_fd, maxsz_p);
}