26 lines
660 B
Diff
26 lines
660 B
Diff
From f7a6fa9f0c29aecb4c2299568ed2e6094c34aca7 Mon Sep 17 00:00:00 2001
|
|
From: Guido Draheim <guidod@gmx.de>
|
|
Date: Mon, 4 Jan 2021 21:55:08 +0100
|
|
Subject: [PATCH 07/35] #68 return value of posix read(2) is signed
|
|
|
|
---
|
|
bins/zzipmake-zip.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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);
|
|
}
|
|
--
|
|
1.8.3.1
|
|
|