compress stored files in zip_replace_zip --HG-- branch : HEAD
diff --git a/lib/zip_replace_zip.c b/lib/zip_replace_zip.c index 637f7b5..bae17df 100644 --- a/lib/zip_replace_zip.c +++ b/lib/zip_replace_zip.c
@@ -35,7 +35,8 @@ return -1; } - if (start == 0 && (len == 0 || len == -1)) { + if ((srczf->entry[srcidx].meta->comp_method == 8 + && start == 0 && (len == 0 || len == -1))) { if ((z=(struct read_zip *)malloc(sizeof(struct read_zip))) == NULL) { zip_err = ZERR_MEMORY; return -1;