35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From d453977f59ca59c61bf59dec28dd724498828f2a Mon Sep 17 00:00:00 2001
|
|
From: Guido Draheim <guidod@gmx.de>
|
|
Date: Mon, 4 Jan 2021 21:51:12 +0100
|
|
Subject: [PATCH 03/35] #68 return value of zzip_entry_fread is signed
|
|
|
|
---
|
|
bins/unzzipcat-big.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/bins/unzzipcat-big.c b/bins/unzzipcat-big.c
|
|
index 111ef47..ecebe11 100644
|
|
--- a/bins/unzzipcat-big.c
|
|
+++ b/bins/unzzipcat-big.c
|
|
@@ -26,7 +26,7 @@ static void unzzip_big_entry_fprint(ZZIP_ENTRY* entry, FILE* out)
|
|
if (file)
|
|
{
|
|
char buffer[1024]; int len;
|
|
- while ((len = zzip_entry_fread (buffer, 1024, 1, file)))
|
|
+ while (0 < (len = zzip_entry_fread (buffer, 1024, 1, file)))
|
|
{
|
|
DBG2("entry read %i", len);
|
|
fwrite (buffer, len, 1, out);
|
|
@@ -45,7 +45,7 @@ static void unzzip_cat_file(FILE* disk, char* name, FILE* out)
|
|
if (file)
|
|
{
|
|
char buffer[1024]; int len;
|
|
- while ((len = zzip_entry_fread (buffer, 1024, 1, file)))
|
|
+ while (0 < (len = zzip_entry_fread (buffer, 1024, 1, file)))
|
|
fwrite (buffer, len, 1, out);
|
|
|
|
zzip_entry_fclose (file);
|
|
--
|
|
1.8.3.1
|
|
|