From b6e9ee2474239d6b0236469d16d9cd0767bc8020 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 20 Jul 2009 17:41:04 +0000 Subject: abuild-tar: fix for full_read(), full_write() --- abuild-tar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'abuild-tar.c') diff --git a/abuild-tar.c b/abuild-tar.c index e491774..f7dc421 100644 --- a/abuild-tar.c +++ b/abuild-tar.c @@ -115,6 +115,7 @@ static ssize_t full_read(int fd, void *buf, size_t count) if (n <= 0) break; buf += n; + total += n; count -= n; } while (1); @@ -136,6 +137,7 @@ static ssize_t full_write(int fd, const void *buf, size_t count) if (n <= 0) break; buf += n; + total += n; count -= n; } while (1); -- cgit v1.2.3-60-g2f50