diff options
author | Glenn L McGrath | 2002-01-02 13:52:26 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-01-02 13:52:26 +0000 |
commit | 87ac7028e01cdc4f504ea558a6ae3d086ed1bf2b (patch) | |
tree | 4f406c877f88a013c4e1dc650ac312640a95cb00 /archival/libunarchive/unarchive.c | |
parent | 438803311b67c6337ea97476e97336e027ef9a3a (diff) | |
download | busybox-87ac7028e01cdc4f504ea558a6ae3d086ed1bf2b.zip busybox-87ac7028e01cdc4f504ea558a6ae3d086ed1bf2b.tar.gz |
unzip applet by Laurence Anderson
----------------------------------------------------------------------
Diffstat (limited to 'archival/libunarchive/unarchive.c')
-rw-r--r-- | archival/libunarchive/unarchive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/libunarchive/unarchive.c b/archival/libunarchive/unarchive.c index ff9b587..41be963 100644 --- a/archival/libunarchive/unarchive.c +++ b/archival/libunarchive/unarchive.c @@ -120,7 +120,8 @@ char *extract_archive(FILE *src_stream, FILE *out_stream, const file_header_t *f return NULL; } archive_offset += file_entry->size; - copy_file_chunk(src_stream, dst_stream, file_entry->size); + if (file_entry->extract_func) file_entry->extract_func(src_stream, dst_stream); + else copy_file_chunk(src_stream, dst_stream, file_entry->size); fclose(dst_stream); } break; |