]> granicus.if.org Git - zziplib/commitdiff
Update unzip-mem.c
authorJosef Möllers <josef.moellers@suse.com>
Thu, 4 Apr 2019 09:30:08 +0000 (11:30 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2019 09:30:08 +0000 (11:30 +0200)
bins/unzip-mem.c

index c5762900686f033914cf2604e21e6f461e44935f..a42d448b119fa1c9041fb170a05911703e54c365 100644 (file)
@@ -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,