diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-20 17:41:04 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-20 17:41:04 +0000 |
commit | b6e9ee2474239d6b0236469d16d9cd0767bc8020 (patch) | |
tree | c17bc6b810e2e1dd9fb7685cc01e0b8005444a80 | |
parent | be9fa503bce62042e2634eb9f85c74b2f3ad6341 (diff) | |
download | abuild-b6e9ee2474239d6b0236469d16d9cd0767bc8020.tar.gz abuild-b6e9ee2474239d6b0236469d16d9cd0767bc8020.tar.bz2 abuild-b6e9ee2474239d6b0236469d16d9cd0767bc8020.tar.xz abuild-b6e9ee2474239d6b0236469d16d9cd0767bc8020.zip |
abuild-tar: fix for full_read(), full_write()
-rw-r--r-- | abuild-tar.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |