From: Guido Draheim Date: Mon, 4 Jan 2021 20:53:50 +0000 (+0100) Subject: #68 return value of zzip_entry_fread is signed X-Git-Tag: v0.13.72~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa1f78abe1b08544061204019016809664f2618c;p=zziplib #68 return value of zzip_entry_fread is signed --- diff --git a/bins/unzzipshow.c b/bins/unzzipshow.c index 9d8c2ed..5672d3b 100644 --- a/bins/unzzipshow.c +++ b/bins/unzzipshow.c @@ -22,7 +22,7 @@ static void zzip_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))) fwrite (buffer, len, 1, out); zzip_entry_fclose (file); @@ -35,7 +35,7 @@ static void zzip_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);