contrib/zziplib/0012-Update-unzip-mem.c.patch
2019-07-06 15:05:38 -04:00

26 lines
864 B
Diff

From 82feb94da77a60c9d85e7ddfc037f363a30be457 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Josef=20M=C3=B6llers?= <josef.moellers@suse.com>
Date: Thu, 4 Apr 2019 11:30:08 +0200
Subject: [PATCH 12/19] Update unzip-mem.c
---
bins/unzip-mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
2.22.0