Commit 3dc07fb7 authored by Natanael Copa's avatar Natanael Copa

abuild-tar: fix total counter for splice

parent 43f32cde
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment