From 3dc07fb7e4acf1c5a2a5b880307961fd1afdb096 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 21 Jul 2009 09:36:15 +0000 Subject: abuild-tar: fix total counter for splice --- abuild-tar.c | 1 + 1 file changed, 1 insertion(+) (limited to 'abuild-tar.c') diff --git a/abuild-tar.c b/abuild-tar.c index c652e04..1293ddc 100644 --- a/abuild-tar.c +++ b/abuild-tar.c @@ -159,6 +159,7 @@ static ssize_t full_splice(int from_fd, int to_fd, size_t count) if (n <= 0) break; count -= n; + total += n; } while (1); if (total == 0 && n < 0) -- cgit v1.2.3-60-g2f50