]> granicus.if.org Git - zziplib/commitdiff
#68 return value of posix read(2) is signed
authorGuido Draheim <guidod@gmx.de>
Mon, 4 Jan 2021 20:55:08 +0000 (21:55 +0100)
committerGuido Draheim <guidod@gmx.de>
Mon, 4 Jan 2021 20:55:08 +0000 (21:55 +0100)
bins/zzipmake-zip.c

index 8e09c31d90f75e37a03021b26abdfef5ae8f82ec..b37877cece73c075f74f171614cf52cd81240b7d 100644 (file)
@@ -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);
            }