From a34a96fbda1e58fbec5c79f4c0b5063e031ce11d Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Mon, 4 Jan 2021 21:52:47 +0100 Subject: [PATCH 05/35] #68 return value of zzip_fread is signed --- bins/unzzipcat-mix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bins/unzzipcat-mix.c b/bins/unzzipcat-mix.c index e18987d..8f3d0b8 100644 --- a/bins/unzzipcat-mix.c +++ b/bins/unzzipcat-mix.c @@ -34,7 +34,7 @@ static void unzzip_cat_file(ZZIP_DIR* disk, char* name, FILE* out) if (file) { char buffer[1024]; int len; - while ((len = zzip_fread (buffer, 1, 1024, file))) + while (0 < (len = zzip_fread (buffer, 1, 1024, file))) { fwrite (buffer, 1, len, out); } -- 1.8.3.1