summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/pack.c b/build/pack.c
index dad770477..062823804 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -415,7 +415,7 @@ static int cpio_gzip(FD_t fdo, CSA_t *csa) {
static int cpio_copy(FD_t fdo, CSA_t *csa) {
char buf[BUFSIZ];
- size_t nb;
+ ssize_t nb;
while((nb = fdRead(csa->cpioFdIn, buf, sizeof(buf))) > 0) {
if (fdWrite(fdo, buf, nb) != nb) {