From: Josef Möllers Date: Thu, 4 Apr 2019 09:30:08 +0000 (+0200) Subject: Update unzip-mem.c X-Git-Tag: v0.13.70~6^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82feb94da77a60c9d85e7ddfc037f363a30be457;p=zziplib Update unzip-mem.c --- diff --git a/bins/unzip-mem.c b/bins/unzip-mem.c index c576290..a42d448 100644 --- a/bins/unzip-mem.c +++ b/bins/unzip-mem.c @@ -233,7 +233,7 @@ static void zzip_mem_entry_direntry(ZZIP_MEM_ENTRY* entry) if (option_verbose) { long percentage; - percentage = usize ? (L (100 - (csize*100/usize))) : 100; /* 100% if file size is 0 */ + percentage = usize ? (L (100 - (csize*100/usize))) : 0; /* 0% if file size is 0 */ printf("%8li%c %s %8li%c%3li%% %s %8lx %s %s\n", L usize, exp, comprlevel[compr], L csize, exp, percentage,