From: Guido Draheim Date: Mon, 4 Jan 2021 20:55:08 +0000 (+0100) Subject: #68 return value of posix read(2) is signed X-Git-Tag: v0.13.72~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7a6fa9f0c29aecb4c2299568ed2e6094c34aca7;p=zziplib #68 return value of posix read(2) is signed --- diff --git a/bins/zzipmake-zip.c b/bins/zzipmake-zip.c index 8e09c31..b37877c 100644 --- a/bins/zzipmake-zip.c +++ b/bins/zzipmake-zip.c @@ -57,7 +57,7 @@ int rezzip_make (int argc, char ** argv) continue; } - while ((n = read (input, buf, 16))) + while (0 < (n = read (input, buf, 16))) { zzip_write (output, buf, n); }