abuild-tar: fix total counter for splice

This commit is contained in:
Natanael Copa 2009-07-21 09:36:15 +00:00
parent 43f32cdeef
commit 3dc07fb7e4

View File

@ -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)