]> granicus.if.org Git - zziplib/commitdiff
#68 return value of zzip_fread is signed
authorGuido Draheim <guidod@gmx.de>
Mon, 4 Jan 2021 20:52:47 +0000 (21:52 +0100)
committerGuido Draheim <guidod@gmx.de>
Mon, 4 Jan 2021 20:52:47 +0000 (21:52 +0100)
bins/unzzipcat-mix.c

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